package templates

import "github.com/prometheus/common/helpers/templates"

Index

Functions

func ConvertToFloat

func ConvertToFloat(i interface{}) (float64, error)

func FloatToTime

func FloatToTime(v float64) (*time.Time, error)

func HumanizeDuration

func HumanizeDuration(i interface{}) (string, error)

func HumanizeTimestamp

func HumanizeTimestamp(i interface{}) (string, error)

Source Files

time.go

Version
v0.63.0 (latest)
Published
Mar 13, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
1 hour ago

Tools for package owners.