calendar

package
v0.0.0-...-00e0705 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lunar

type Lunar struct {
	IsLeap     bool
	LunarDay   int
	LunarMonth int
	LunarYear  int
}

Lunar 农历

func SolarToLunar

func SolarToLunar(solar Solar) *Lunar

SolarToLunar 公历转农历

type Plugin

type Plugin struct {
	I18n     *i18n.I18n         `inject:""`
	Cache    cache.Cache        `inject:""`
	Jwt      *web.Jwt           `inject:""`
	Queue    queue.Queue        `inject:""`
	Settings *settings.Settings `inject:""`
	Security *web.Security      `inject:""`
	Storage  storage.Storage    `inject:""`
	DB       *pg.DB             `inject:""`
}

Plugin plugin(task manager)

func (*Plugin) Init

func (p *Plugin) Init(*inject.Graph) error

Init init beans

func (*Plugin) Mount

func (p *Plugin) Mount() error

Mount register

func (*Plugin) Shell

func (p *Plugin) Shell() []cli.Command

Shell console commands

type Solar

type Solar struct {
	SolarDay   int
	SolarMonth int
	SolarYear  int
}

Solar 公历

func LunarToSolar

func LunarToSolar(lunar Lunar) *Solar

LunarToSolar 农历转公历

Jump to

Keyboard shortcuts

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