add my humanize package

This commit is contained in:
lyx0 2021-10-19 22:44:52 +02:00
parent 1e4e56ddf6
commit bfd206e064

13
pkg/humanize/time.go Normal file
View 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)
}