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

counter

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 6

README

counter

a simple atomic counter with max value

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
}

func (*Counter) Counter

func (c *Counter) Counter() uint64

func (*Counter) Dec

func (c *Counter) Dec() uint64

func (*Counter) Inc

func (c *Counter) Inc() uint64

func (*Counter) Max

func (c *Counter) Max() uint64

func (*Counter) Reset

func (c *Counter) Reset()

func (*Counter) UpdateMax

func (c *Counter) UpdateMax(current uint64) bool

Jump to

Keyboard shortcuts

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