· ☕ 3 min read
cobra package cobra is command line tool that can be used to build command line tools! installation Get cobra installed go get -u usage cobra init creating a new CLI application is as easy as running cobra init cobra init --pkg-name This should create new cli application: main root main.go 1 2 3 4 5 6 7 package main import "" func main() { cmd.Execute() } root.