Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "grip", SilenceErrors: true, SilenceUsage: true, PersistentPreRun: func(cmd *cobra.Command, args []string) { if enableProf { go func() { err := http.ListenAndServe(":6060", nil) if err != nil { panic(fmt.Errorf("pprof error: %v", err)) } }() log.Infoln("pprof listening on :6060") } }, }
RootCmd represents the root command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.