reporter

package
v1.0.1-0...-c326910 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit(key string, value interface{})

Commit values to the report To print values to stdout use Write function

func Get

func Get(key string) (interface{}, bool)

Get value that was previously committed

func Increment

func Increment(key string) int

Increment the value under the specified key Works for int values only Returns the new value of the counter.

func Reset

func Reset()

Reset sets all the counter values to 0

func Write

func Write()

Write function prints report to stdout and clear all values

Types

This section is empty.

Jump to

Keyboard shortcuts

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