mirror of
https://github.com/charmbracelet/gum
synced 2024-05-09 17:56:37 +02: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 a new issue