added example
This commit is contained in:
10
example/main.go
Normal file
10
example/main.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package main
|
||||
|
||||
import "net/http"
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/", func(writer http.ResponseWriter, _ *http.Request) {
|
||||
writer.Write([]byte("It works!"))
|
||||
})
|
||||
http.ListenAndServe(":8080", nil)
|
||||
}
|
||||
Reference in New Issue
Block a user