Suan

package
v0.0.0-...-d14e825 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminUser

type AdminUser struct {
	Id   int64  // 唯一ID
	Name string // 姓名
}

type GuaKV

type GuaKV struct {
	Key string // 乾 - 乾
	Val string // 乾为天(乾卦)自强不息
}

type Suan

type Suan struct {
	User        User               // 用户信息
	Calendar    *calendar.Calendar // 日历计算
	PeiShu      ganzhi.PeiShu      // 干支配数
	XianTianGua string             // 先天卦
	HouTianGua  string             // 后天卦

	SanShuGua string // 三数定卦
	// contains filtered or unexported fields
}

func NewSuan

func NewSuan(user User) Suan

func (*Suan) Do

func (s *Suan) Do()

func (*Suan) GetGua64Arr

func (s *Suan) GetGua64Arr() []GuaKV

func (*Suan) ThreeDigit

func (s *Suan) ThreeDigit(nums []int)

三数定卦 三数以此为下卦、上挂、爻序

type User

type User struct {
	Id            int64     // 唯一ID
	Name          string    // 姓名
	Age           int       // 年龄
	Sex           bool      // 男(true) 女(false)
	Birthday      time.Time // 阳历生日 YYYY-MM-DD HH:mm
	LunarBirthday time.Time // 农历生日 YYYY-MM-DD HH:mm
}

Jump to

Keyboard shortcuts

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