codecounter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeCounter

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

CodeCounter is the goroutine unsafe code counter.

func New

func New() *CodeCounter

New creates a CodeCounter.

func (*CodeCounter) Codes

func (cc *CodeCounter) Codes() map[int]uint64

Codes returns the codes.

func (*CodeCounter) Count

func (cc *CodeCounter) Count(code int)

Count counts a new code.

Jump to

Keyboard shortcuts

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