mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add humanize time package
This commit is contained in:
parent
ed8d09eae2
commit
47e7091a09
1 changed files with 11 additions and 0 deletions
11
pkg/humanize/time.go
Normal file
11
pkg/humanize/time.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package humanize
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/dustin/go-humanize"
|
||||
)
|
||||
|
||||
func Time(t time.Time) string {
|
||||
return humanize.Time(t)
|
||||
}
|
Loading…
Reference in a new issue