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