interfaces

package
v0.0.0-...-6f8c8e2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarTypeFunc

type BarTypeFunc struct{}

BarTypeFunc provides a template function which determines the bar type for a stars bar

func (*BarTypeFunc) Func

func (f *BarTypeFunc) Func(_ context.Context) interface{}

Func returns the function mapping bar types to star amounts

type ForFunc

type ForFunc struct{}

ForFunc provides a template function returning a slice of ints

func (*ForFunc) Func

func (f *ForFunc) Func(_ context.Context) interface{}

Func returns the function returning a slice of strings from start to end (including the edges)

type RandomIntFunc

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

RandomIntFunc provides a random integer template function

func (*RandomIntFunc) Func

func (f *RandomIntFunc) Func(_ context.Context) interface{}

Func returns the function returning a random int between min and max

func (*RandomIntFunc) Inject

func (f *RandomIntFunc) Inject(
	c *struct {
		DebugMode bool `inject:"config:debug.mode"`
	},
)

Inject dependencies

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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