serializer

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONSerializer

type JSONSerializer struct {
}

JSONSerializer json序列化器

func (JSONSerializer) Scan

func (JSONSerializer) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)

实现 Scan 方法

func (JSONSerializer) Value

func (JSONSerializer) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error)

实现 Value 方法

type StringArraySerializer added in v0.0.42

type StringArraySerializer struct {
}

StringArraySerializer array序列化器

func (StringArraySerializer) Scan added in v0.0.42

func (StringArraySerializer) Scan(ctx context.Context, field *schema.Field, dst reflect.Value,
	dbValue any) (err error)

实现 Scan 方法

func (StringArraySerializer) Value added in v0.0.42

func (StringArraySerializer) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue any) (any, error)

实现 Value 方法

Jump to

Keyboard shortcuts

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