A simple weather forecasting command line tool by go.
Native
go build -o weather-cli utils.go types.go main.go && ./weather-cli
Use Lib
go build -o weather-cli utils.go types.go cli_main.go && ./weather-cli
go build -ldflags "-s -w" -o weather-cli utils.go types.go cli_main.go && upx ./weather-cli
Linux Arch
GOOS=linux GOARCH=amd64 go build ...
Windows Arch
GOOS=windows GOARCH=amd64 go build ...
MacOSX Arch
GOOS=darwin GOARCH=amd64 go build ...
go build -ldflags "-s -w" -o weather-cli utils.go types.go cli_main.go && upx ./weather-cli