array

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Separator 序列化时的分隔符
	Separator = ";"
	// StartEndMark 开始和结尾标志
	StartEndMark = ";"
)

Functions

This section is empty.

Types

type StringArray

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

StringArray todo

func NewStringArray

func NewStringArray(items []string) *StringArray

NewStringArray todo

func (StringArray) Items

func (t StringArray) Items() []string

Items 列表

func (StringArray) Length

func (t StringArray) Length() int

Length 长度

func (StringArray) MarshalJSON

func (t StringArray) MarshalJSON() ([]byte, error)

MarshalJSON todo

func (*StringArray) Scan

func (t *StringArray) Scan(value interface{}) error

Scan 实现sql的反序列化

func (StringArray) String

func (t StringArray) String() string

func (*StringArray) UnmarshalJSON

func (t *StringArray) UnmarshalJSON(b []byte) error

UnmarshalJSON todo

func (StringArray) Value

func (t StringArray) Value() (driver.Value, error)

Value 实现sql的序列化

Jump to

Keyboard shortcuts

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