Go get ellipsis (#1)
* gi: rename gi_c into _gi_c * gi: rename test into _test * gi: fix README syntax
This commit is contained in:
committed by
Marc Vertes
parent
f9706f970f
commit
476a31322d
19
_test/server2.go
Normal file
19
_test/server2.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
var v string = "v1.0"
|
||||
|
||||
func main() {
|
||||
|
||||
myHandler := func(w http.ResponseWriter, r *http.Request) {
|
||||
//fmt.Fprintln(w, "Welcome to my website!", v)
|
||||
fmt.Fprintln(w, "Welcome to my website!")
|
||||
}
|
||||
|
||||
http.HandleFunc("/", myHandler)
|
||||
http.ListenAndServe(":8080", nil)
|
||||
}
|
||||
Reference in New Issue
Block a user