stats

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

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

一组计数器

func New

func New(n int) *Stats

func (*Stats) Add

func (s *Stats) Add(i int, delta int64) int64

func (*Stats) Clone

func (s *Stats) Clone() *Stats

func (*Stats) Copy

func (s *Stats) Copy() []int64

func (*Stats) Get

func (s *Stats) Get(i int) int64

func (*Stats) Set

func (s *Stats) Set(i int, v int64)

Jump to

Keyboard shortcuts

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