package
Version:
v0.0.0-...-4b9bf86
Opens a new window with list of versions in this module.
Published: Mar 22, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package drum provides a simple counter (with names based on musical methaphores)
Drum is named counter
NewDrum returns a new initialized drum
Beat increments b.Cnt by one.
And iff b.Verbose then b.Map[cur] get incremented as well.
Init returns an initialized drum
Print prints the counter, if it's not empty, as lines of tab-terminated cells.
And iff b.verbose then b.Map is printed in ascending order of its keys.
Sort returns the keys of b.Map in a sorted slice
Source Files
¶
Click to show internal directories.
Click to hide internal directories.