vars

package
v2.0.0-alpha.18 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any[T any](name string, v T) T

func Bool

func Bool(name string) *atomic.Bool

func Duration

func Duration(name string) *atomic.Duration

func Each

func Each(fn func(key string, val expvar.Var))

func Error

func Error(name string) *atomic.Error

func Float

func Float(name string) *atomic.Float64

func Has

func Has(name string) bool

func Int

func Int(name string) *atomic.Int64

func Register

func Register(name string, value Func)

func String

func String(name string) *atomic.String

func Time

func Time(name string) *atomic.Time

func UniqueName

func UniqueName(names ...string) string

Types

type Func

type Func func() any

func (Func) MarshalJSON

func (f Func) MarshalJSON() ([]byte, error)

func (Func) String

func (f Func) String() (r string)

func (Func) Value

func (f Func) Value() any

Jump to

Keyboard shortcuts

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