bind

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(target *bool) expect.Predicate

Bool creates a predicate requiring a value to be a bool, binding the value to a target variable.

func Float added in v0.0.9

func Float(target *float64) expect.Predicate

Float creates a predicate requiring a value to be a floating point number, binding the value to a target variable.

func Int added in v0.0.9

func Int(target *int64) expect.Predicate

Int creates a predicate requiring a value to be an integer, binding the value to a target variable.

func Map

func Map(target *map[string]any) expect.Predicate

Map creates a predicate requiring a value to be a map, binding the value to a target variable.

func Slice

func Slice(target *[]any) expect.Predicate

Slice creates a predicate requiring a value to be a slice, binding the value to a target variable.

func String

func String(target *string) expect.Predicate

String creates a predicate requiring a value to be a string, binding the value to a target variable.

func Struct

func Struct(target any) expect.Predicate

Struct creates a predicate requiring a value to be a struct, binding the value to a target variable by unmarshaling the JSON representation of the value into the target variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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