INNER CODE UNIT · Go
main
apache/dubbo-go-pixiu · controllers/cmd/pgctl/main.go:24
func main() {
rootCmd := cmd.GetRootCmd()
if err := rootCmd.Execute(); err != nil {
getExitCode(err)
}
}
func getExitCode(e error) string {
return e.Error()
}
INNER CODE UNIT · Go
apache/dubbo-go-pixiu · controllers/cmd/pgctl/main.go:24
func main() {
rootCmd := cmd.GetRootCmd()
if err := rootCmd.Execute(); err != nil {
getExitCode(err)
}
}
func getExitCode(e error) string {
return e.Error()
}