Help us shape the future of Go! Take the 2026 Go Developer Survey

metric

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

Counter counts up uint value.

func NewCounter

func NewCounter(name string) *Counter

func (*Counter) Get

func (c *Counter) Get() uint64

func (*Counter) Incr

func (c *Counter) Incr()

Incr increments the value by an atomic operation.

func (Counter) Name

func (c Counter) Name() string

Jump to

Keyboard shortcuts

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