An open API service indexing awesome lists of open source software.

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

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