gohttpserver/httpserver/handleindex.go

13 lines
193 B
Go
Raw Normal View History

2020-09-30 06:35:07 +00:00
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")
}
}