assets

package
Version: v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

Counter ...

func (*Counter) BreakChain

func (u *Counter) BreakChain(err error) *Counter

BreakChain ...

func (*Counter) Count

func (u *Counter) Count() (int, error)

Count leaf method should always return error since if there's an error the value is meanlingless.

func (*Counter) Do

func (u *Counter) Do() *Counter

Do ...

func (*Counter) DoSthWrong

func (u *Counter) DoSthWrong() *Counter

DoSthWrong simulate when an operation goes wrong

func (*Counter) Err

func (u *Counter) Err() error

Err ...

func (*Counter) Return

func (u *Counter) Return() bool

Return ...

type CounterE

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

CounterE ...

func (*CounterE) Count

func (u *CounterE) Count() int

Count ...

func (*CounterE) Do

func (u *CounterE) Do() error

Do ...

func (*CounterE) DoSthWrong

func (u *CounterE) DoSthWrong() error

DoSthWrong ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL