hertz_scaffold/main.go
liangzy 1f05b680f8 feat(start): initialize project with Go scaffold
- Add basic Go application structure.- Include `.gitignore` file with common Go ignores.
- Create `main.go` with initial "Hello, World!" implementation.
2024-07-18 17:33:30 +08:00

18 lines
278 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!")
},
}
func main() {
rootCmd.Execute()
}