Skip to content

Use go-humanize package instead of home-grown functions #1858

Closed as not planned
@johnstcn

Description

@johnstcn

Fine for now, but humanize package does a good job at making this a list that is easily extended:
https://github.com/dustin/go-humanize/blob/master/times.go#L47-L65

It only works for time.Time in the package though. Just a nit

Originally posted by @Emyrk in #1828 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions