Versions in this module Expand all Collapse all v1 v1.0.0 Jan 10, 2022 Changes in this version + const DrySuffix + const GIGA + const GzSuffix + const KILO + const MEGA + func IsDrySuffix(file string) bool + func MergeCodes(codes []string) string + func ParseEnvDuration(name string, defaultValue time.Duration) time.Duration + func ReadFile(f *os.File) ([]byte, error) + func TrimDrySuffix(file string) string + type Features map[string]bool + func NewFeatures(features ...string) Features + func (f *Features) Has(feature string) bool + func (f *Features) HasAny(features ...string) bool + func (f *Features) IsNop() bool + func (f *Features) Setup(featuresArr []string) + type Float64 float64 + func BytesToBPS(bytes uint64, d time.Duration) Float64 + func BytesToGiga(bytes uint64) Float64 + func BytesToMBS(bytes uint64, d time.Duration) Float64 + func BytesToMEGA(bytes uint64) Float64 + func NumberToRate(num uint64, d time.Duration) Float64 + func (f Float64) MarshalJSON() ([]byte, error) + type GoroutineIncr struct + Down int + Dur time.Duration + Up int + func ParseGoIncr(s string) GoroutineIncr + func (i GoroutineIncr) IsEmpty() bool + func (i GoroutineIncr) Modifier() string + type JSONLogFile struct + Closed bool + Dry bool + F *os.File + HasRows bool + Name string + func NewJsonLogFile(file string) *JSONLogFile + func (f *JSONLogFile) Close() error + func (f *JSONLogFile) WriteJSON(data []byte) error + func (f JSONLogFile) IsDry() bool + func (f JSONLogFile) ReadAll() []byte + type SizeUnit int + type WidthHeight struct + H int + W int + func ParseWidthHeight(val string, defaultWidth, defaultHeight int) WidthHeight + func (h WidthHeight) HeightPx() string + func (h WidthHeight) WidthPx() string