counter

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package counter provides a way to create a singleton to increment and store a counter

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
}

Counter provides a way to generate and store a incremented id

func (*Counter) Get

func (c *Counter) Get() string

Get returns current counter value

func (*Counter) Increment

func (c *Counter) Increment()

Increment adds one to actual counter value

Jump to

Keyboard shortcuts

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