github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/backup/server5.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) { 8 w.Write([]byte("hello world")) 9 }) 10 11 func main() { 12 http.ListenAndServe(":8080", myHandler) 13 }