types

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 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 Datetime

type Datetime struct {
	sql.NullTime
}

Datetime 可以适应Null值的时间类型

func NewDatetime

func NewDatetime(t time.Time) Datetime

NewDatetime 创建日期时间类型

func (*Datetime) MarshalJSON

func (v *Datetime) MarshalJSON() ([]byte, error)

MarshalJSON 转为json

func (Datetime) UnmarshalJSON

func (v Datetime) UnmarshalJSON(data []byte) error

UnmarshalJSON 转为Datetime

Jump to

Keyboard shortcuts

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