Documentation
¶
Index ¶
- Variables
- func AddCommand(cmd ...*cobra.Command)
- func GetConfig() string
- func GetConfigAutoEnv() bool
- func GetConfigEnvPrefix() string
- func GetEtc() string
- func GetEtcAutoEnv() bool
- func GetEtcEnvPrefix() string
- func InitCmd(use, short, long string, runE func(*cobra.Command, []string) error, ...) (err error)
- func TrimSpaceConfig() string
- func TrimSpaceEtc() string
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: filepath.Base(os.Args[0]), Short: "sparrow 是一个基于 gin 的 restful api 风格的 web 框架", Long: `sparrow 是一个简洁优雅的 go 语言 web 框架,用来快速开发 前后端分离 模式下的后端业务逻辑. sparrow的目标就是: 尽量平衡自由和规范的界限,既可以让开发者减少开发工作量和开发心智负担,同时开发者有自由组合的权利;当然这是个美好的愿望,希望能实现. 😁😁😁`, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func GetConfigAutoEnv ¶
func GetConfigAutoEnv() bool
func GetConfigEnvPrefix ¶
func GetConfigEnvPrefix() string
func GetEtcAutoEnv ¶
func GetEtcAutoEnv() bool
func GetEtcEnvPrefix ¶
func GetEtcEnvPrefix() string
func InitCmd ¶
func InitCmd(use, short, long string, runE func(*cobra.Command, []string) error, version string) (err error)
InitCmd 初始化命令行
func TrimSpaceConfig ¶
func TrimSpaceConfig() string
func TrimSpaceEtc ¶
func TrimSpaceEtc() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.