pub

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelElement

func DelElement(s []string) []string

DelElement 去除切片空元 同时去除切片的相同元素

func GetGanS

func GetGanS(gz string) string

GetGanS 取天干 传干支 返回干

func GetZhiS

func GetZhiS(gz string) string

GetZhiS 取地支 传干支返回支

func JiTanBing

func JiTanBing(dgz string) (jtb string)

JiTanBing 忌探病日

func JueLiRi

func JueLiRi(st time.Time) (sjs string)

JueLiRi XJBF四离四绝 离 冬至 夏至 春分 秋分 前一日 绝 立春 立夏 立秋 立冬 前一日 st :阳历当日时间戳 jqt:节气时间戳数组

func ReName

func ReName(arr []string, source, add string) []string

ReName 顺序不变 把arr数组中source名字改为source + add 如果没有符合条件的返回原值

func ReNameS

func ReNameS(s, dels string, r string) string

ReNameS 正则替换 把s的dels元素替换成r

func ReSortArr

func ReSortArr(zhi string, zhiArr []string) []string

ReSortArr 逆序排地支

func ReSortArrInt

func ReSortArrInt(index int, arr []int) []int

ReSortArrInt 逆向排序

func RemoveRepeatedElement

func RemoveRepeatedElement(arr []string) (newArr []string)

RemoveRepeatedElement 去除重复元素

func SortArr

func SortArr(zhi string, zhiArr []string) []string

SortArr 顺序排地支 传入对应的地支 原地支数组 返回排序后的地支数组

func SortArrInt

func SortArrInt(index int, arr []int) ([]int, error)

SortArrInt 顺排 int数组 排序后使得index在首位 返回排序后的数组 如果index不在数组中 返回错误

func SortInt

func SortInt(index int, arr []int) []int

SortInt 正向排序

func WeekName

func WeekName(n int) (w string)

WeekName 周几 0,7周日 1:周一

Types

This section is empty.

Jump to

Keyboard shortcuts

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