Categorygithub.com/serjlee/frequency
modulepackage
1.1.0
Repository: https://github.com/serjlee/frequency.git
Documentation: pkg.go.dev

# README

frequency

Frequency is a simple alternative to time.Duration useful if:

  • You need to handle more units (ie: months, milliseconds)
  • You like round units
  • You mostly need it to show it to humans or to parse it from some JSON/YAML configuration
  • You are me

# Functions

FromDuration returns a frequency from time.Duration, rounding to the nearest unit.
ParseFrequency parses a frequency from a string.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author