Documentation ¶
Index ¶
- func CreateDirectoryIfNotExists(path string) error
- func EscapeJsonMultilineStrings(data []byte) []byte
- func FormatBytes(v float32) (string, string)
- func FormatDuration(d timeseries.Duration, limitFirstN int) string
- func FormatDurationShort(d timeseries.Duration, limitFirstN int) string
- func FormatFloat(v float32) string
- func FormatImage(orig string) string
- func FormatLatency(v float32) string
- func FormatMoney(v float32) string
- func FormatPercentage(v float32) string
- func GlobMatch(s string, patterns []string) bool
- func GlobValidate(patterns []string) bool
- func HumanBits(v float32) string
- func LastPart(s string, sep string) string
- func NanoId(size int) string
- func ParseHeatmapDuration(s string) time.Duration
- func ParseTime(now timeseries.Time, val string, def timeseries.Time) timeseries.Time
- func ReadJson(r *http.Request, dest any) error
- func WriteJson(w http.ResponseWriter, v any)
- type BasicAuth
- type Header
- type StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeJsonMultilineStrings ¶ added in v1.0.0
func FormatBytes ¶
func FormatDuration ¶
func FormatDuration(d timeseries.Duration, limitFirstN int) string
func FormatDurationShort ¶
func FormatDurationShort(d timeseries.Duration, limitFirstN int) string
func FormatFloat ¶
func FormatImage ¶ added in v0.21.0
func FormatLatency ¶
func FormatMoney ¶
func FormatPercentage ¶
func GlobValidate ¶
func ParseHeatmapDuration ¶ added in v1.0.0
func ParseTime ¶
func ParseTime(now timeseries.Time, val string, def timeseries.Time) timeseries.Time
func WriteJson ¶
func WriteJson(w http.ResponseWriter, v any)
Types ¶
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
func NewStringSet ¶
func (*StringSet) MarshalJSON ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.