5c51ce0f20
- Add basic Go application structure.- Include `.gitignore` file with common Go ignores. - Create `main.go` with initial "Hello, World!" implementation.
18 lines
285 B
Go
18 lines
285 B
Go
package main
|
|
|
|
import "fmt"
|
|
import "github.com/spf13/cobra"
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "hello",
|
|
Short: "Hello, World!",
|
|
Long: `Hello, World!`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("Hello, World! corbra")
|
|
},
|
|
}
|
|
|
|
func main() {
|
|
rootCmd.Execute()
|
|
}
|