ctr

package
v0.0.0-...-fe173bb Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ctr implements an application wide source for unique IDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLast

func GetLast() int32

GetLast returns the most recent (current) counter

func GetLastStr

func GetLastStr() string

GetLastStr returns the most recent (current) counter

func Increment

func Increment() int32

Increment returns the next counter

func IncrementStr

func IncrementStr() string

IncrementStr returns the next counter as string

func New

func New() *count32

New returns a new specific counter

func Reset

func Reset()

Reset turns the clock back to zero

Types

This section is empty.

Jump to

Keyboard shortcuts

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