utils

package
v0.0.0-...-56299ac Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AGTB

func AGTB(A string, B string) bool

func AGTEB

func AGTEB(A string, B string) bool

func AddDays

func AddDays(start string, num int) (string, error)

func AddMonths

func AddMonths(start string, num int) (string, error)

func CheckSplit

func CheckSplit(str string) bool

判断编码是否由 domain id与code number 拼接而成.

func CompareDate

func CompareDate(start string, end string) int

第二个参数大于第一个参数时,返回 1 第二个参数小于第一个参数时,返回 -1 第一个参数等于第二个参数时,返回 0

func DataInterval

func DataInterval(start string, end string) int

func Decrypt

func Decrypt(dt string) (string, error)

func Encrypt

func Encrypt(dt string) (string, error)

func FormatIntTodate

func FormatIntTodate(year int, month int, day int) (string, error)

将字符串格式化未yyyy-mm-dd形式

func FormatStringToDate

func FormatStringToDate(date string) (string, error)

func JoinCode

func JoinCode(domain_id, code_number string) string

func MonthInterval

func MonthInterval(start string, pmt_freq int) (int, error)

func SetKey

func SetKey(key []byte) bool

func SplitCode

func SplitCode(id string) string

返回编码信息的Code number

func SplitDomain

func SplitDomain(id string) string

返回编码信息的domain id

func ValidDate

func ValidDate(date string) bool

日期校验

Types

This section is empty.

Directories

Path Synopsis
Package config implements configuration file read
Package config implements configuration file read
token

Jump to

Keyboard shortcuts

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