github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/backup/server3.gno (about) 1 package main 2 3 import ( 4 "net/http" 5 ) 6 7 var myHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hello world")) }) 8 9 func main() { 10 http.HandleFunc("/", myHandler) 11 http.ListenAndServe(":8080", nil) 12 }