https://github.com/hellokaton/weather-cli
💊 weather command-line programs written in Golang.
https://github.com/hellokaton/weather-cli
golang terminal weather
Last synced: 11 months ago
JSON representation
💊 weather command-line programs written in Golang.
- Host: GitHub
- URL: https://github.com/hellokaton/weather-cli
- Owner: hellokaton
- License: mit
- Created: 2017-11-01T08:44:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-18T08:17:13.000Z (about 8 years ago)
- Last Synced: 2025-03-20T01:23:43.078Z (11 months ago)
- Topics: golang, terminal, weather
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 18
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weather-cli
A simple weather forecasting command line tool by go.
[](https://github.com/biezhi/weather-cli/blob/master/LICENSE)
[](https://www.zhihu.com/people/biezhi)
[](https://github.com/biezhi)
## Usage
**Native**
```bash
go build -o weather-cli utils.go types.go main.go && ./weather-cli
```
**Use Lib**
```bash
go build -o weather-cli utils.go types.go cli_main.go && ./weather-cli
```
## Package
```bash
go build -ldflags "-s -w" -o weather-cli utils.go types.go cli_main.go && upx ./weather-cli
```
**Linux Arch**
```bash
GOOS=linux GOARCH=amd64 go build ...
```
**Windows Arch**
```bash
GOOS=windows GOARCH=amd64 go build ...
```
**MacOSX Arch**
```bash
GOOS=darwin GOARCH=amd64 go build ...
```
## Compression
```bash
go build -ldflags "-s -w" -o weather-cli utils.go types.go cli_main.go && upx ./weather-cli
```