mirror of
https://github.com/charmbracelet/gum.git
synced 2024-10-05 18:29:23 +03:00
Replace custom strings with constants from the standard library (#537)
This commit is contained in:
parent
a4f52465e7
commit
a0f96abea4
@ -46,9 +46,9 @@ func (o Options) Run() error {
|
||||
"stampmilli": time.StampMilli,
|
||||
"stampmicro": time.StampMicro,
|
||||
"stampnano": time.StampNano,
|
||||
"datetime": "2006-01-02 15:04:05",
|
||||
"dateonly": "2006-01-02",
|
||||
"timeonly": "15:04:05",
|
||||
"datetime": time.DateTime,
|
||||
"dateonly": time.DateOnly,
|
||||
"timeonly": time.TimeOnly,
|
||||
}
|
||||
|
||||
tf, ok := timeFormats[strings.ToLower(o.Time)]
|
||||
|
Loading…
Reference in New Issue
Block a user