github.com/golazy/golazy@v0.0.7-0.20221012133820-968fe65a0b65/lazydev/test_app/main.go (about) 1 package main 2 3 import ( 4 "net/http" 5 6 "github.com/golazy/golazy/lazydev/lazydev" 7 ) 8 9 func main() { 10 http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { 11 w.Write([]byte("hello world")) 12 }) 13 14 err := lazydev.Serve(nil) 15 if err != nil { 16 panic(err) 17 } 18 }