github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/backup/server.gno (about) 1 package main 2 3 import ( 4 "fmt" 5 "net/http" 6 ) 7 8 var v string = "v1.0" 9 10 func main() { 11 a := "hello " 12 http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { 13 fmt.Fprint(w, "Welcome to my website! ", a, v) 14 }) 15 16 http.ListenAndServe(":8080", nil) 17 }