gohttpserver/httpserver/handleindex.go

13 lines
193 B
Go

package httpserver
import (
"fmt"
"net/http"
)
func (s *server) handleIndex() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "hello world")
}
}