Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

short-d/unit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unit

Convert human readable units to what the computer understands

TODO

  • Storage units: B, KB, MB, GB, TB, PB

Getting Started

  1. Install the library

    go get github.com/short-d/unit
  2. Parse human readable unit

    import "github.com/short-d/unit"
    
    oneWeekStr := "1w"
    oneWeek, err := unit.ParseDuration(oneWeekStr)

License

This project is maintained under MIT license.

About

Convert human readable units to what the computer understands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages