util

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(lv string) log.Logger

func NewStdLogger added in v0.1.4

func NewStdLogger(l log.Logger) *stdlog.Logger

func ParseDuration

func ParseDuration(s string) (time.Duration, error)

origin: https://github.com/prometheus/prometheus/blob/v2.2.1/web/api/v1/api.go#L809 modify: make the scope of `parseDuration` to public.

func ParseTime

func ParseTime(s string) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL