/weather-cli

💊 使用 Golang 编写的天气命令行程序

Primary LanguageGoMIT LicenseMIT

weather-cli

A simple weather forecasting command line tool by go.

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