Documentation
¶
Index ¶
- func Base64De(data string) ([]byte, error)
- func Base64En(data []byte) string
- func CheckHttpHealthy(u string, timeout time.Duration) (ok bool, delay time.Duration, err error)
- func DayStart(t time.Time) time.Time
- func EncryptPwd(pwd []byte) string
- func HmacSha1(key, value []byte) ([]byte, error)
- func IsDigit(s string) bool
- func MD5(data []byte) string
- func NDaysAgo(t time.Time, n int) time.Time
- func NewLocalIPNet() []*net.IPNet
- func NewPostJsonRequest(url string, body interface{}) (*http.Request, error)
- func NewPutJsonRequest(url string, body interface{}) (*http.Request, error)
- func NullBool(d bool) sql.NullBool
- func NullInt64(d int64) sql.NullInt64
- func NullString(d string) sql.NullString
- func NullTime(d time.Time) pq.NullTime
- func Percent(molecular, denominator uint64) float64
- func PrintTable(writer io.Writer, headers []string, data [][]string)
- func RandmonCode(bitNumber int) string
- func RandomString(l int) string
- func SQLLog(w io.Writer) func(d string, args ...interface{})
- func Sha1(data string) string
- func Sha256(data string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHttpHealthy ¶ added in v0.0.4
func NewLocalIPNet ¶
func NewPostJsonRequest ¶
func NewPutJsonRequest ¶
func NullString ¶
func NullString(d string) sql.NullString
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.