as

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asser

type Asser interface {
	Value(any) any
	Handler(any) any
	Match(any) bool
	Grouper() any
}

Asser is a representation of type checker for constructors. check value the constructor provides and can group constructors which provide the same type

func Interface

func Interface[T any](key string) Asser

Interface is a constructor method for an Asser that can be used for Interterface types. not for primitive types, function types, or struct types.

func Struct

func Struct[T any](key string) Asser

Struct is a constructor method for an Asser that can be used for primitive types, function types, or struct types.

Jump to

Keyboard shortcuts

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