lang

package
v0.0.0-...-9aa2fb4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Unlicense Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertNot

func AssertNot(tag string, value interface{}, unexpected interface{})

func AssertNotEmpty

func AssertNotEmpty(tag string, value string)

assertNotEmpty does sanity check

func AssertNotNil

func AssertNotNil(tag string, value interface{})

assertNotNil does sanity check

func AssertValue

func AssertValue(tag string, value interface{}, expected interface{})

func CheckErr

func CheckErr(err error)

func EqualArrays

func EqualArrays(a, b interface{}) bool

func MaxInt

func MaxInt(x uint16, y uint16) uint16

func MinInt

func MinInt(x uint16, y uint16) uint16

func ReportErr

func ReportErr(format string, a ...interface{})

Types

type StateChecker

type StateChecker interface {
	CheckStateIs(state string)
	CheckStateIsNot(state string)
	SwitchState(nextState string)
	SwitchStateFromTo(stateFrom, stateTo string)
	Current() string
	CurrentIs(state string) bool
}

func NewStateChecker

func NewStateChecker(startState string) StateChecker

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳