libs

package
v0.0.0-...-0fb516e Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

============================================================ 描述: 作者: Simon 日期: 2019/10/24 5:20 下午

============================================================

============================================================ 描述: 作者: Simon 日期: 2019/10/24 5:43 下午

============================================================

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

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

对应基础类型 bool

func NewBool

func NewBool(value bool) Bool

func (Bool) Get

func (b Bool) Get() bool

func (Bool) IsEmpty

func (b Bool) IsEmpty() bool

func (Bool) MarshalJSON

func (b Bool) MarshalJSON() ([]byte, error)

func (*Bool) Scan

func (b *Bool) Scan(data interface{}) error

func (Bool) String

func (b Bool) String() string

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) error

func (Bool) Value

func (b Bool) Value() (driver.Value, error)

type Ext

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

func NewExt

func NewExt() Ext

func (Ext) Get

func (e Ext) Get() map[string]string

func (Ext) IsEmpty

func (e Ext) IsEmpty() bool

func (Ext) MarshalJSON

func (e Ext) MarshalJSON() ([]byte, error)

func (*Ext) Scan

func (e *Ext) Scan(val interface{}) error

func (*Ext) SetExtItem

func (e *Ext) SetExtItem(key string, value string)

func (*Ext) UnmarshalJSON

func (e *Ext) UnmarshalJSON(data []byte) error

func (Ext) Value

func (e Ext) Value() (driver.Value, error)

type Float

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

float32 float64 float16 float8

func NewFloat

func NewFloat(value float64) Float

func (Float) Get

func (f Float) Get() float64

func (Float) IsEmpty

func (f Float) IsEmpty() bool

func (Float) MarshalJSON

func (f Float) MarshalJSON() ([]byte, error)

func (*Float) Scan

func (f *Float) Scan(data interface{}) error

func (Float) String

func (f Float) String() string

func (*Float) UnmarshalJSON

func (f *Float) UnmarshalJSON(data []byte) error

func (Float) Value

func (f Float) Value() (driver.Value, error)

type Int

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

func NewInt

func NewInt(i int) Int

func (Int) Get

func (i Int) Get() int

func (Int) IsEmpty

func (i Int) IsEmpty() bool

func (Int) MarshalJSON

func (i Int) MarshalJSON() ([]byte, error)

func (*Int) Scan

func (i *Int) Scan(data interface{}) error

func (*Int) Set

func (i *Int) Set(value int)

func (Int) String

func (i Int) String() string

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(data []byte) error

func (Int) Value

func (i Int) Value() (driver.Value, error)

type LibItem

type LibItem interface {
	IsEmpty() bool
}

type MSTimeStamp

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

func (MSTimeStamp) MarshalJSON

func (s MSTimeStamp) MarshalJSON() ([]byte, error)

func (*MSTimeStamp) Scan

func (s *MSTimeStamp) Scan(value interface{}) error

func (*MSTimeStamp) UnmarshalJSON

func (s *MSTimeStamp) UnmarshalJSON(data []byte) error

func (MSTimeStamp) Value

func (s MSTimeStamp) Value() (driver.Value, error)

type String

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

func NewString

func NewString(value string) String

func (String) Get

func (s String) Get() string

func (String) IsEmpty

func (s String) IsEmpty() bool

func (String) MarshalJSON

func (s String) MarshalJSON() ([]byte, error)

func (*String) Scan

func (s *String) Scan(value interface{}) error

func (*String) Set

func (s *String) Set(value string)

func (String) String

func (s String) String() string

func (*String) UnmarshalJSON

func (s *String) UnmarshalJSON(data []byte) error

func (String) Value

func (s String) Value() (driver.Value, error)

type Time

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

func NewTime

func NewTime(time time.Time) Time

func (Time) Get

func (t Time) Get() time.Time

func (Time) IsEmpty

func (t Time) IsEmpty() bool

func (Time) MarshalJSON

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

func (*Time) Scan

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

func (Time) String

func (t Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

func (*Time) UnmarshalText

func (t *Time) UnmarshalText(text []byte) error

UnmarshalText json 反序列化

func (Time) Value

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

Jump to

Keyboard shortcuts

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