https://github.com/appleboy/golang-cli-example
CLI Example for Golang
https://github.com/appleboy/golang-cli-example
Last synced: 4 months ago
JSON representation
CLI Example for Golang
- Host: GitHub
- URL: https://github.com/appleboy/golang-cli-example
- Owner: appleboy
- License: mit
- Created: 2017-02-16T05:49:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T13:25:55.000Z (almost 9 years ago)
- Last Synced: 2025-09-13T13:17:31.304Z (4 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# golang-cli-example
CLI Example for Golang
## [How to use flag in Golang](./example01)
* [#1](https://github.com/appleboy/golang-cli-example/blob/master/example01/README.md#build) Learn how to build binary.
* [#2](https://github.com/appleboy/golang-cli-example/blob/master/example01/README.md#execute) Show help page in command line.
## [Write command line tool using urfave/cli](./example02)
* [#1](https://github.com/appleboy/golang-cli-example/blob/master/example02/README.md#installation) Install urfave/cli package
* [#2](https://github.com/appleboy/golang-cli-example/blob/master/example02/Makefile#L13-L17) Build docker image
* [#3](https://github.com/appleboy/golang-cli-example/blob/master/example02/Makefile#L19-L22) Cross Compile in Golang