utility

package
v0.0.0-...-78d9b97 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 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 ComplexNumberForMarshal

type ComplexNumberForMarshal struct {
	Real      float64 `json:"real" yaml:"real"`
	Imaginary float64 `json:"imaginary" yaml:"imaginary"`
}

ComplexNumberForMarshal can be unmarshaled from byte streams.

type NumericallyCloseEnough

type NumericallyCloseEnough struct{}

NumericallyCloseEnough asserts the two given numbers are within tolerance.

func (NumericallyCloseEnough) Check

func (checker NumericallyCloseEnough) Check(params []interface{}, names []string) (result bool, error string)

Check to see if the obtained and expected are within tolerance.

func (NumericallyCloseEnough) Info

func (checker NumericallyCloseEnough) Info() *check.CheckerInfo

Info returns information for the NumericallyCloseEnough

type UnmarshalFunc

type UnmarshalFunc func([]byte, interface{}) error

UnmarshalFunc abstracts how the byte stream will be unmarshalled.

Jump to

Keyboard shortcuts

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