* test: add consistency tests. * skip: cli1 due to bug. * refactor: rename test. * refactor: map and for.
13 lines
237 B
Go
13 lines
237 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
var myHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hello world")) })
|
|
|
|
func main() {
|
|
http.HandleFunc("/", myHandler)
|
|
http.ListenAndServe(":8080", nil)
|
|
}
|