repeater

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(f func(Seed)) seed.Option

Do runs f.

func New

func New(data interface{}, options ...seed.Option) seed.Seed

New returns a repeater capable of repeating itself based on the given Go data.

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

func (Data) Index

func (d Data) Index() Data

func (Data) Int

func (d Data) Int() int

func (Data) Interface

func (d Data) Interface() interface{}

func (Data) String

func (d Data) String() string

type Seed

type Seed struct {
	seed.Seed
	Data Data
}

Jump to

Keyboard shortcuts

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