* test: add consistency tests. * skip: cli1 due to bug. * refactor: rename test. * refactor: map and for.
18 lines
255 B
Go
18 lines
255 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
var v string = "v1.0"
|
|
|
|
func myHandler(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprintln(w, "Welcome to my website!")
|
|
}
|
|
|
|
func main() {
|
|
http.HandleFunc("/", myHandler)
|
|
http.ListenAndServe(":8080", nil)
|
|
}
|