Documentation ¶
Index ¶
- type Debug
- func (d *Debug) AppendEntry(source string) string
- func (d *Debug) Debug(developFormat string, parameters ...interface{})
- func (d *Debug) EnableDebug() (debug bool)
- func (d *Debug) FillSpace(width int, middle, value string) string
- func (d *Debug) Release(releaseFormat string, parameters ...interface{})
- func (d *Debug) Show(developFormat, releaseFormat string, parameters ...interface{})
- func (d *Debug) ShowSame(format string, parameters ...interface{})
- type Mode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debug ¶
type Debug struct { Command *cobra.Command // cobra command CombinationKey bool // debug flag key is combination key, default true. Command.Use+"-debug" Mode Mode // 运行模式 AutoAppendEntry bool // auto append entry }
func (*Debug) AppendEntry ¶
func (*Debug) EnableDebug ¶
Click to show internal directories.
Click to hide internal directories.