Change time
This commit is contained in:
@ -8,6 +8,12 @@ import (
|
||||
"example.com/golang-base/internal/log"
|
||||
)
|
||||
|
||||
// Config uses struct tags to configure the application.
|
||||
// (default) Default value to be used if unset or not defined.
|
||||
// (ignored) Don't process the current tag.
|
||||
// (info) String to be presented to the user on -help use.
|
||||
// (secret) If set to true, hide the value from being output on start-up.
|
||||
// (env) environment variable to be used if not set on command line.
|
||||
type Config struct {
|
||||
// time configuration
|
||||
TimeFormat string `default:"2006-01-02 15:04:05" env:"time_format"`
|
||||
|
Reference in New Issue
Block a user