Versions in this module Expand all Collapse all v0 v0.1.4 Aug 8, 2020 Changes in this version + func AddFlags() + func AddToValue(key string, value float64) + func AreLogged() bool + func Clear() + func GetCounter(key string) int64 + func GetValue(key string) float64 + func IncrementCounter(key string) + func IncrementCounterBy(key string, value int64) + func TrackTime(key string, start time.Time, unit time.Duration) + func Write() error + func WriteAndLogError() + type Stats struct + LogToStderr bool + OutputFile string + func New() *Stats + func (s *Stats) AddFlags() + func (s *Stats) AddToValue(key string, value float64) + func (s *Stats) AreLogged() bool + func (s *Stats) Clear() + func (s *Stats) GetCounter(key string) int64 + func (s *Stats) GetValue(key string) float64 + func (s *Stats) IncrementCounter(key string) + func (s *Stats) IncrementCounterBy(key string, value int64) + func (s *Stats) TrackTime(key string, start time.Time, unit time.Duration) + func (s *Stats) Write() error + func (s *Stats) WriteAndLogError()