binder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolBinder

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

BoolBinder 布尔绑定器

func NewBoolBinder

func NewBoolBinder() *BoolBinder

NewBoolBinder 构造布尔绑定器

func (*BoolBinder) Bind

func (binder *BoolBinder) Bind(value any, v any) error

Bind 绑定布尔值

type IBinder

type IBinder interface {
	Bind(value any, v any) error
}

IBinder 绑定器接口

func GetBinder

func GetBinder(v reflect.Kind) IBinder

GetBinder 获取绑定器

type NumberBinder

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

NumberBinder 数字绑定器

func NewNumberBinder

func NewNumberBinder() *NumberBinder

NewNumberBinder 构造数字绑定器

func (*NumberBinder) Bind

func (binder *NumberBinder) Bind(value any, v any) error

Bind 绑定数字

type StringBinder

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

StringBinder 字符串绑定器

func NewStringBinder

func NewStringBinder() *StringBinder

NewStringBinder 构造字符串绑定器

func (*StringBinder) Bind

func (binder *StringBinder) Bind(value any, v any) error

Bind 绑定字符串

Jump to

Keyboard shortcuts

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