golang code
The hackathon attempts to build a webserver in go/golang
Code Samples
- ws1
- fs1
- a client for gcp firestore in go
workflow for go ws1
This is the web server sample. It does not depend on any external modules.
macOS
Build and run from scratch
- go mod init server
- go mod tidy
- go build server
- ./server
Build and run from existing code
- go build server
- ./server
workflow for go fs1
This is the client for the gcp firestore. It depends upon the google cloud module.
The reference for the module
specifies that you need to do a go get
command. eg. :
go get cloud.google.com/go/firestore # Replace with the package you want to use.
However, the go mod tidy appears to do this already.
macOS
Build and run from scratch
- go mod init client
- go mod tidy
- go build client
- ./client
Build and run from existing code
- go build client
- ./client
URLS