dtype

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistributedId

type DistributedId int64

func (DistributedId) MarshalJSON

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

MarshalJSON 重写MarshalJSON方法

func (*DistributedId) Scan

func (t *DistributedId) Scan(v interface{}) error

Scan 将数据库中取出的数据,赋值给目标类型

func (DistributedId) Value

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

Value 写入数据库之前,对数据做类型转换

type Time

type Time time.Time

func (Time) MarshalJSON

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

MarshalJSON 重写MarshalJSON方法

func (*Time) Scan

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

Scan 将数据库中取出的数据,赋值给目标类型

func (Time) Value

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

Value 写入数据库之前,对数据做类型转换

Jump to

Keyboard shortcuts

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