Documentation ¶
Index ¶
Constants ¶
View Source
const ( //BEGIN 开始年份 BEGIN = 1901 //END 结束年份 END = 2100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
type Date struct { ID uint `gorm:"primary_key"` SYear int `gorm:"type:smallint;not null"` SMonth int `gorm:"type:smallint;not null"` SDay int `gorm:"type:smallint;not null"` LYear int `gorm:"type:smallint;not null"` LMonth int `gorm:"type:smallint;not null"` LDay int `gorm:"type:smallint;not null"` Term string `gorm:"type:varchar(12);index"` //Term int `gorm:"not null"` Leap bool `gorm:"not null"` }
Date 中国农历-公历数据
type GormQuery ¶
GormQuery query by gorm
type PgSQLQuery ¶
PgSQLQuery query by gorm
func (*PgSQLQuery) FromLunar ¶
func (p *PgSQLQuery) FromLunar(y, m, d int) ([]Date, error)
FromLunar 从农历查询
Click to show internal directories.
Click to hide internal directories.