💊 weather command-line programs written in Golang.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
cli_main.go
main.go
types.go
utils.go

README.md

weather-cli

A simple weather forecasting command line tool by go.

@biezhi on zhihu

Usage

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

Package

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 ...

Compression

go build -ldflags "-s -w" -o weather-cli utils.go types.go cli_main.go && upx ./weather-cli