mock

package
v1.2.43 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default bool
)

Functions

func Any

func Any(v any)

func Array

func Array(v any)

func Map

func Map(v any)

func RegisterBool

func RegisterBool(name string, fn BoolFunc) bool

func RegisterFloat

func RegisterFloat(name string, fn FloatFunc) bool

func RegisterInt

func RegisterInt(name string, fn IntFunc) bool

func RegisterString

func RegisterString(name string, fn StringFunc) bool

func RegisterUint

func RegisterUint(name string, fn UintFunc) bool

func Slice

func Slice(v any)

func Struct

func Struct(v any)

Types

type BoolFunc

type BoolFunc func() bool

type FloatFunc

type FloatFunc func() float64

type FuncT

type FuncT[T any] func() T

type IntFunc

type IntFunc func() int64

type Rule

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

type StringFunc

type StringFunc func() string

type TimeFunc

type TimeFunc func() time.Time

type UintFunc

type UintFunc func() uint64

Directories

Path Synopsis
v2
Package mockv2 was generated
Package mockv2 was generated

Jump to

Keyboard shortcuts

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