util

package
v0.0.0-...-cef33ce Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Forever = iota
	Never
)

Variables

This section is empty.

Functions

func HumanizeDuration

func HumanizeDuration(duration time.Duration) string

func NewCacheHandler

func NewCacheHandler(strategy CacheStrategy, handler http.Handler) http.Handler

func SortedKeys

func SortedKeys(in map[string]struct{}) []string

Types

type ArrayFlags

type ArrayFlags []string

func (*ArrayFlags) Set

func (af *ArrayFlags) Set(value string) error

func (*ArrayFlags) String

func (af *ArrayFlags) String() string

type CacheStrategy

type CacheStrategy int

Jump to

Keyboard shortcuts

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