counter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT, MIT Imports: 1 Imported by: 0

README

go-counter

atomic integer counter for go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Value int64
}

Counter 计数器

func (*Counter) Down

func (c *Counter) Down(step ...int64) (result int64)

Down 下降

func (*Counter) Get added in v0.2.0

func (c *Counter) Get() (result int64)

func (*Counter) Up

func (c *Counter) Up(step ...int64) (result int64)

Up 上升

Jump to

Keyboard shortcuts

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