package main import ( "git.links123.net/links123.com/monitor_status/cmd/http" "git.links123.net/links123.com/monitor_status/cmd/tcp" "git.links123.net/links123.com/monitor_status/cmd/version" "github.com/spf13/cobra" ) var apiVersion, gitCommit, built string // @title project skeleton for all project from links123.com // @version 1.0 // @description project skeleton for all project from links123.com // @host 127.0.0.1:8080/v1 func main() { rootCmd := &cobra.Command{ Use: "skeleton", Short: "skeleton api for the project of links123.com's campus", } rootCmd.AddCommand(http.RunCommand()) rootCmd.AddCommand(tcp.RunCommand()) rootCmd.AddCommand(version.RunCommand(apiVersion, gitCommit, built)) if err := rootCmd.Execute(); err != nil { panic(err) } }