1
0
mirror of https://github.com/zu1k/nali.git synced 2025-01-22 21:29:02 +08:00

mod comment

This commit is contained in:
zu1k 2020-07-17 09:55:24 +08:00
parent 7c49923aa7
commit d408557a09
3 changed files with 9 additions and 5 deletions

View File

@ -24,7 +24,7 @@ var rootCmd = &cobra.Command{
}, },
} }
// parse subcommand and run // Execute parse subcommand and run
func Execute() { func Execute() {
if err := rootCmd.Execute(); err != nil { if err := rootCmd.Execute(); err != nil {
log.Fatal(err.Error()) log.Fatal(err.Error())

View File

@ -1,5 +1,6 @@
package constant package constant
var ( var (
HomePath string // db home path // HomePath db home path
HomePath string
) )

View File

@ -1,8 +1,11 @@
package constant package constant
const Name = "Nali" // bin name // Name is the program name
const Name = "Nali"
var ( var (
Version = "unknown version" // version // Version like 1.0.1
BuildTime = "unknown time" //build time Version = "unknown version"
// BuildTime like 2020-01-01
BuildTime = "unknown time"
) )