count

package
v0.0.0-...-cc2f434 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package count provides a trumpet.Generator that keeps count of the number of times Train is called.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator uint64

Generator is a trumpet.Generator that keeps track of the number of times that Train is called.

func New

func New() *Generator

New returns a *Generator that keeps track of the number of times Train is called.

func (*Generator) Generate

func (g *Generator) Generate(maxLength int) string

Generate panics.

func (*Generator) Train

func (g *Generator) Train(s string)

Train increments its counter.

Jump to

Keyboard shortcuts

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