GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
sample-golang
/
01_hello
Browse code
add http server sample
master
1 parent
ca243a5
commit
77e200d8f57377f65e7854c010c5b20e7976e7c7
yhornisse
authored
on 21 Sep 2021
Patch
Showing
1 changed file
httpServer.go
Ignore Space
Show notes
View
httpServer.go
0 → 100644
package main import ( "fmt" "net/http" ) func main() { http.HandleFunc("/", handler) http.ListenAndServe("localhost:8080", nil) } func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Hello, World!") }
Show line notes below