Skip to content

nga1hte/go-chuck-facts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-chuck-facts

go-chuck-facts is a cli tool build in golang to fetch random or categorised facts about the legend Chuck Norris from chucknorris.io

Installation

Clone the repository and make sure that golang is installed.

$ git clone https://github.com/nga1hte/go-chuck-facts.git
$ go build gocf.go

export the binary to PATH for easy calling.

export PATH=$PATH:$(pwd)

Usage

To run the program execute

$ ./gocf
> Chuck Norris frequently signs up for beginner karate classes so he can accidentally roundhouse kick kids in the neck.

Flags and help

 ./gocf -h
Usage of ./gcf:
  -c string
    	categories: animal, career, celebrity, dev, explicit, fashion, food, history, money, movie, music, political, religion, science, sport, travel
  -n int
    	Number of facts to fetch (default 1)

Contributing

Any contribution is welcomed. Project created for practice.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages