tally

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITally

type ITally int

ITally is a counter of type int.

func (*ITally) Add

func (t *ITally) Add(i int) (cur int)

Add increases this counter by the given value, returning the previous int value of this ITally.

func (ITally) Cur

func (t ITally) Cur() int

Cur returns the current int value of this ITally.

func (*ITally) Dec

func (t *ITally) Dec() (cur int)

Dec decreases this counter by 1, returning the previous int value of this ITally.

func (*ITally) Inc

func (t *ITally) Inc() (cur int)

Inc increases this counter by 1, returning the previous int value of this ITally.

func (*ITally) Sub

func (t *ITally) Sub(i int) (cur int)

Sub decreases this counter by the given value, returning the previous int value of this ITally.

func (*ITally) Zero

func (t *ITally) Zero() (cur int)

Zero sets the current counter value to 0, returning the previous int value of this ITally.

type ITally16

type ITally16 int16

ITally16 is a counter of type int16.

func (*ITally16) Add

func (t *ITally16) Add(i int16) (cur int16)

Add increases this counter by the given value, returning the previous int16 value of this ITally16.

func (ITally16) Cur

func (t ITally16) Cur() int16

Cur returns the current int16 value of this ITally16.

func (*ITally16) Dec

func (t *ITally16) Dec() (cur int16)

Dec decreases this counter by 1, returning the previous int16 value of this ITally16.

func (*ITally16) Inc

func (t *ITally16) Inc() (cur int16)

Inc increases this counter by 1, returning the previous int16 value of this ITally16.

func (*ITally16) Sub

func (t *ITally16) Sub(i int16) (cur int16)

Sub decreases this counter by the given value, returning the previous int16 value of this ITally16.

func (*ITally16) Zero

func (t *ITally16) Zero() (cur int16)

Zero sets the current counter value to 0, returning the previous int16 value of this ITally16.

type ITally32

type ITally32 int32

ITally32 is a counter of type int32.

func (*ITally32) Add

func (t *ITally32) Add(i int32) (cur int32)

Add increases this counter by the given value, returning the previous int32 value of this ITally32.

func (ITally32) Cur

func (t ITally32) Cur() int32

Cur returns the current int32 value of this ITally32.

func (*ITally32) Dec

func (t *ITally32) Dec() (cur int32)

Dec decreases this counter by 1, returning the previous int32 value of this ITally32.

func (*ITally32) Inc

func (t *ITally32) Inc() (cur int32)

Inc increases this counter by 1, returning the previous int32 value of this ITally32.

func (*ITally32) Sub

func (t *ITally32) Sub(i int32) (cur int32)

Sub decreases this counter by the given value, returning the previous int32 value of this ITally32.

func (*ITally32) Zero

func (t *ITally32) Zero() (cur int32)

Zero sets the current counter value to 0, returning the previous int32 value of this ITally32.

type ITally64

type ITally64 int64

ITally64 is a counter of type int64.

func (*ITally64) Add

func (t *ITally64) Add(i int64) (cur int64)

Add increases this counter by the given value, returning the previous int64 value of this ITally64.

func (ITally64) Cur

func (t ITally64) Cur() int64

Cur returns the current int64 value of this ITally64.

func (*ITally64) Dec

func (t *ITally64) Dec() (cur int64)

Dec decreases this counter by 1, returning the previous int64 value of this ITally64.

func (*ITally64) Inc

func (t *ITally64) Inc() (cur int64)

Inc increases this counter by 1, returning the previous int64 value of this ITally64.

func (*ITally64) Sub

func (t *ITally64) Sub(i int64) (cur int64)

Sub decreases this counter by the given value, returning the previous int64 value of this ITally64.

func (*ITally64) Zero

func (t *ITally64) Zero() (cur int64)

Zero sets the current counter value to 0, returning the previous int64 value of this ITally64.

type ITally8

type ITally8 int8

ITally8 is a counter of type int8.

func (*ITally8) Add

func (t *ITally8) Add(i int8) (cur int8)

Add increases this counter by the given value, returning the previous int8 value of this ITally8.

func (ITally8) Cur

func (t ITally8) Cur() int8

Cur returns the current int8 value of this ITally8.

func (*ITally8) Dec

func (t *ITally8) Dec() (cur int8)

Dec decreases this counter by 1, returning the previous int8 value of this ITally8.

func (*ITally8) Inc

func (t *ITally8) Inc() (cur int8)

Inc increases this counter by 1, returning the previous int8 value of this ITally8.

func (*ITally8) Sub

func (t *ITally8) Sub(i int8) (cur int8)

Sub decreases this counter by the given value, returning the previous int8 value of this ITally8.

func (*ITally8) Zero

func (t *ITally8) Zero() (cur int8)

Zero sets the current counter value to 0, returning the previous int8 value of this ITally8.

type UTally

type UTally uint

UTally is a counter of type uint.

func (*UTally) Add

func (t *UTally) Add(i uint) (cur uint)

Add increases this counter by the given value, returning the previous uint value of this UTally.

func (UTally) Cur

func (t UTally) Cur() uint

Cur returns the current uint value of this UTally.

func (*UTally) Dec

func (t *UTally) Dec() (cur uint)

Dec decreases this counter by 1, returning the previous uint value of this UTally.

func (*UTally) Inc

func (t *UTally) Inc() (cur uint)

Inc increases this counter by 1, returning the previous uint value of this UTally.

func (*UTally) Sub

func (t *UTally) Sub(i uint) (cur uint)

Sub decreases this counter by the given value, returning the previous uint value of this UTally.

func (*UTally) Zero

func (t *UTally) Zero() (cur uint)

Zero sets the current counter value to 0, returning the previous uint value of this UTally.

type UTally16

type UTally16 uint16

UTally16 is a counter of type uint16.

func (*UTally16) Add

func (t *UTally16) Add(i uint16) (cur uint16)

Add increases this counter by the given value, returning the previous uint16 value of this UTally16.

func (UTally16) Cur

func (t UTally16) Cur() uint16

Cur returns the current uint16 value of this UTally16.

func (*UTally16) Dec

func (t *UTally16) Dec() (cur uint16)

Dec decreases this counter by 1, returning the previous uint16 value of this UTally16.

func (*UTally16) Inc

func (t *UTally16) Inc() (cur uint16)

Inc increases this counter by 1, returning the previous uint16 value of this UTally16.

func (*UTally16) Sub

func (t *UTally16) Sub(i uint16) (cur uint16)

Sub decreases this counter by the given value, returning the previous uint16 value of this UTally16.

func (*UTally16) Zero

func (t *UTally16) Zero() (cur uint16)

Zero sets the current counter value to 0, returning the previous uint16 value of this UTally16.

type UTally32

type UTally32 uint32

UTally32 is a counter of type uint32.

func (*UTally32) Add

func (t *UTally32) Add(i uint32) (cur uint32)

Add increases this counter by the given value, returning the previous uint32 value of this UTally32.

func (UTally32) Cur

func (t UTally32) Cur() uint32

Cur returns the current uint32 value of this UTally32.

func (*UTally32) Dec

func (t *UTally32) Dec() (cur uint32)

Dec decreases this counter by 1, returning the previous uint32 value of this UTally32.

func (*UTally32) Inc

func (t *UTally32) Inc() (cur uint32)

Inc increases this counter by 1, returning the previous uint32 value of this UTally32.

func (*UTally32) Sub

func (t *UTally32) Sub(i uint32) (cur uint32)

Sub decreases this counter by the given value, returning the previous uint32 value of this UTally32.

func (*UTally32) Zero

func (t *UTally32) Zero() (cur uint32)

Zero sets the current counter value to 0, returning the previous uint32 value of this UTally32.

type UTally64

type UTally64 uint64

UTally64 is a counter of type uint64.

func (*UTally64) Add

func (t *UTally64) Add(i uint64) (cur uint64)

Add increases this counter by the given value, returning the previous uint64 value of this UTally64.

func (UTally64) Cur

func (t UTally64) Cur() uint64

Cur returns the current uint64 value of this UTally64.

func (*UTally64) Dec

func (t *UTally64) Dec() (cur uint64)

Dec decreases this counter by 1, returning the previous uint64 value of this UTally64.

func (*UTally64) Inc

func (t *UTally64) Inc() (cur uint64)

Inc increases this counter by 1, returning the previous uint64 value of this UTally64.

func (*UTally64) Sub

func (t *UTally64) Sub(i uint64) (cur uint64)

Sub decreases this counter by the given value, returning the previous uint64 value of this UTally64.

func (*UTally64) Zero

func (t *UTally64) Zero() (cur uint64)

Zero sets the current counter value to 0, returning the previous uint64 value of this UTally64.

type UTally8

type UTally8 uint8

UTally8 is a counter of type uint8.

func (*UTally8) Add

func (t *UTally8) Add(i uint8) (cur uint8)

Add increases this counter by the given value, returning the previous uint8 value of this UTally8.

func (UTally8) Cur

func (t UTally8) Cur() uint8

Cur returns the current uint8 value of this UTally8.

func (*UTally8) Dec

func (t *UTally8) Dec() (cur uint8)

Dec decreases this counter by 1, returning the previous uint8 value of this UTally8.

func (*UTally8) Inc

func (t *UTally8) Inc() (cur uint8)

Inc increases this counter by 1, returning the previous uint8 value of this UTally8.

func (*UTally8) Sub

func (t *UTally8) Sub(i uint8) (cur uint8)

Sub decreases this counter by the given value, returning the previous uint8 value of this UTally8.

func (*UTally8) Zero

func (t *UTally8) Zero() (cur uint8)

Zero sets the current counter value to 0, returning the previous uint8 value of this UTally8.

Jump to

Keyboard shortcuts

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