helper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2String

func Bytes2String(b []byte) string

Bytes2String ... @author Cloud|2021-12-12 18:24:20 @param b []byte ... @return string ...

func ContextMessage

func ContextMessage(msg string, stack string, isAtAll bool, logType ...interface{})

func NowTime

func NowTime(format ...string) string

NowTime 当前时间 @author Cloud|2021-12-13 09:40:41 @param format ...string ... @return string ...

func RemoveDuplicateWithInt

func RemoveDuplicateWithInt(arr []int) []int

RemoveDuplicateWithInt 去除重复值 @author Cloud|2021-12-12 18:20:52 @param arr []int ... @return []int ...

func RemoveDuplicateWithString

func RemoveDuplicateWithString(arr []string) []string

RemoveDuplicateWithString 去除重复值 @author Cloud|2021-12-13 09:33:05 @param arr []string ... @return []string ...

func RemoveWithInt

func RemoveWithInt(arr []int, in int) []int

RemoveWithInt 删除数组中的指定值 @author Cloud|2021-12-14 12:15:15 @param arr []int ... @param in int ... @return []int ...

func RemoveWithString

func RemoveWithString(arr []string, in string) []string

RemoveWithString 删除数组中的指定值 @author Cloud|2021-12-12 18:20:21 @param arr []string ... @param in string ... @return []string ...

func SimpleMessage

func SimpleMessage(msg string, isAtAll bool, logType ...interface{})

func String2Bytes

func String2Bytes(s string) []byte

String2Bytes ... @author Cloud|2021-12-12 18:24:23 @param s string ... @return []byte ...

func TodayRemainSecond

func TodayRemainSecond() time.Duration

TodayRemainSecond 获取当天剩余的秒数 @author Cloud|2021-12-12 12:49:41 @return time.Duration ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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