Documentation
¶
Overview ¶
*********************************************************************************************** *** G O L A N D S T U D I O S *** *********************************************************************************************** * Auth: ColeCai * Date: 2021/11/06 15:31:14 * File: utils.go * Proj: public * Pack: utils * Ides: GoLand *---------------------------------------------------------------------------------------------- * Functions: * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Index ¶
- func B2S(b []byte) string
- func CurDayLeftSecond() int64
- func CurWeekLeftSecond() int64
- func IsCurDay(tm int64) bool
- func IsCurMonth(tm int64) bool
- func IsCurWeek(tm int64) bool
- func IsSameDay(time1, time2 int64) bool
- func IsSameMonth(time1, time2 int64) bool
- func IsSameWeek(time1, time2 int64) bool
- func NewProtoMsg(name string) (proto.Message, error)
- func ProtoMsgName(msg proto.Message) string
- func S2B(s string) (b []byte)
- func VpnClient(addr string) (*http.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func B2S ¶
*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/12/07 17:31:49 ColeCai. ***********************************************************************************************
func CurDayLeftSecond ¶
func CurDayLeftSecond() int64
*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/12/04 12:41:38 ColeCai. ***********************************************************************************************
func CurWeekLeftSecond ¶
func CurWeekLeftSecond() int64
*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/12/04 12:42:52 ColeCai. ***********************************************************************************************
func IsCurDay ¶
*********************************************************************************************** * SUMMARY: * WARNING: input param is timestamp. * HISTORY: * -create: 2021/12/04 12:34:32 ColeCai. ***********************************************************************************************
func IsCurMonth ¶
*********************************************************************************************** * SUMMARY: * WARNING: input param is timestamp. * HISTORY: * -create: 2021/12/04 12:40:35 ColeCai. ***********************************************************************************************
func IsCurWeek ¶
*********************************************************************************************** * SUMMARY: * WARNING: input param is timestamp. * HISTORY: * -create: 2021/12/04 12:36:24 ColeCai. ***********************************************************************************************
func IsSameDay ¶
*********************************************************************************************** * SUMMARY: * WARNING: input params is timestamp. * HISTORY: * -create: 2021/12/04 12:32:40 ColeCai. ***********************************************************************************************
func IsSameMonth ¶
*********************************************************************************************** * SUMMARY: * WARNING: input params is timestamp. * HISTORY: * -create: 2021/12/04 12:39:42 ColeCai. ***********************************************************************************************
func IsSameWeek ¶
*********************************************************************************************** * SUMMARY: * WARNING: input params is timestamp. * HISTORY: * -create: 2021/12/04 12:35:16 ColeCai. ***********************************************************************************************
func NewProtoMsg ¶
*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/11/20 16:57:17 ColeCai. ***********************************************************************************************
func ProtoMsgName ¶
*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/11/20 16:53:48 ColeCai. ***********************************************************************************************
func S2B ¶
*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/12/07 17:32:57 ColeCai. ***********************************************************************************************
Types ¶
This section is empty.