Change time

This commit is contained in:
2025-02-22 21:33:37 -06:00
parent d2e07e98a5
commit c97d51c48f
2 changed files with 10 additions and 0 deletions

View File

@ -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"`