package
Version:
v0.0.0-...-88bc37c
Opens a new window with list of versions in this module.
Published: Oct 9, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const DefaultTimestampFormat = "2006-01-02 15:04:05"
Build time constant variables from -ldflags
View Source
var VersionCmd = &cobra.Command{
Use: "version",
Short: "Show version",
Long: "Show version",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("%s version %s (git: %s, build: %s, goversion: %s)\n",
cmd.Root().CommandPath(),
Version,
Sha[:8],
Builddate,
Goversion,
)
},
}
type LogFormatter struct {
DisableTimestamp bool
DisableStacktrace bool
DisableFileLine bool
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.