contract

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrement

func Decrement() error

Decrement decreases the counter by 1

func GetValue

func GetValue() (int64, error)

GetValue returns the current counter value

func Increment

func Increment() error

Increment increases the counter by 1

func Initialize

func Initialize(initialValue int64) error

Initialize initializes the counter with an initial value

func Reset

func Reset() error

Reset sets the counter back to 0

Types

This section is empty.

Jump to

Keyboard shortcuts

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