effects

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeprecationWarning

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

DeprecationWarning the type definition

func NewDeprecationWarning

func NewDeprecationWarning(deprecated string, suggested string) DeprecationWarning

NewDeprecationWarning the constructor

func (DeprecationWarning) Run

func (deprecationWarning DeprecationWarning) Run()

Run write a line to STDOUT

type Effect

type Effect interface {
	Run()
}

Effect a side effect

type Exit

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

Exit the type definition

func NewExitErr

func NewExitErr() Exit

NewExitErr the constructor for the error case

func NewExitOk

func NewExitOk() Exit

NewExitOk the constructor for the ok case

func (Exit) Run

func (exit Exit) Run()

Run exit with the respective status code

type PrintErr

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

PrintErr the type definition

func NewPrintErr

func NewPrintErr(err error) PrintErr

NewPrintErr the constructor

func (PrintErr) Run

func (printErr PrintErr) Run()

Run write a line to STDERR

type PrintMessage

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

PrintMessage the type definition

func NewPrintMessage

func NewPrintMessage(msg string) PrintMessage

NewPrintMessage the constructor

func (PrintMessage) Run

func (printMsg PrintMessage) Run()

Run write a line to STDOUT

Jump to

Keyboard shortcuts

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