init hello world
This commit is contained in:
9
http/helloworld.go
Normal file
9
http/helloworld.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package http
|
||||
|
||||
import "net/http"
|
||||
|
||||
func HelloWorld(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte("hello world"))
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user