go2coding

package
v0.0.0-...-385762f Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Coding

func Coding() error

func GetDurationSecond

func GetDurationSecond()

func GetFirstDateOfMonth

func GetFirstDateOfMonth(d time.Time) time.Time

func GetLastDateOfMonth

func GetLastDateOfMonth(d time.Time) time.Time

获取传入的时间所在月份的最后一天,即某月最后一天的0点。如传入time.Now(), 返回当前月份的最后一天0点时间。

func GetResultItemJson

func GetResultItemJson() string

func GetTotalPage

func GetTotalPage(all int) int

func GetZeroTime

func GetZeroTime(d time.Time) time.Time

获取某一天的0点时间

func Hashdj

func Hashdj(conf2Id string, rate int) (hashed bool)

func ReplaceString

func ReplaceString(param map[string]interface{}) string

Types

type Address

type Address struct {
	Code int    `json:"code"`
	Name string `json:"name"`
}

type ResultItem

type ResultItem struct {
	Id      int      `json:"id"`
	Name    string   `json:"name"`
	Address *Address `json:"address"`
}

Directories

Path Synopsis
包的命名规范:短,简洁,容易记住 go推荐的命名方式为src/encoding/base64 而非src/encoding_base64或者是src/encodingBase64 参考wiki: https://golang.org/doc/effective_go.html
包的命名规范:短,简洁,容易记住 go推荐的命名方式为src/encoding/base64 而非src/encoding_base64或者是src/encodingBase64 参考wiki: https://golang.org/doc/effective_go.html

Jump to

Keyboard shortcuts

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