2019-09-02から1日間の記事一覧
Goのhttpサーバ package main import ( "fmt" "net/http" ) type String string func (s String) ServeHTTP(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, s) } func main() { http.Handle("/", String("Hello World.")) http.ListenAndServe("l…