Go Language by Google
3
GO LANG WRITING WEB APPLICATIONS
-
Upload
herry-atwar -
Category
Software
-
view
293 -
download
0
Transcript of Go Language by Google
![Page 1: Go Language by Google](https://reader036.fdocuments.net/reader036/viewer/2022082620/587869761a28ab497b8b4919/html5/thumbnails/1.jpg)
GO LANGWRITING WEB APPLICATIONS
![Page 2: Go Language by Google](https://reader036.fdocuments.net/reader036/viewer/2022082620/587869761a28ab497b8b4919/html5/thumbnails/2.jpg)
TEST.GO
package mainimport ( "fmt" "net/http")func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])}func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil)}
![Page 3: Go Language by Google](https://reader036.fdocuments.net/reader036/viewer/2022082620/587869761a28ab497b8b4919/html5/thumbnails/3.jpg)
COMPILE & RUN
go build test.go test