cmd

package
v0.0.0-...-d728bd2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName      = "web"
	AppShortDesc = "web entry"
	AppLongDesc  = "web entry is a gin web app"
)

Variables

View Source
var (
	AppCmd = &cobra.Command{
		Use:          AppName,
		Short:        AppShortDesc,
		Long:         AppLongDesc,
		SilenceUsage: true,
		PreRun: func(cmd *cobra.Command, args []string) {
			log.Println("App preRun")

			initConfig()

			pkg.InitZapLogger()
		},
		RunE: func(cmd *cobra.Command, args []string) error {

			return web.NewApp()
		},
	}
)

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL