utils

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 7 Imported by: 0

README

goutils

golang utils

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2S

func B2S(b []byte) string

*********************************************************************************************** * 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

func IsCurDay(tm int64) bool

*********************************************************************************************** * SUMMARY: * WARNING: input param is timestamp. * HISTORY: * -create: 2021/12/04 12:34:32 ColeCai. ***********************************************************************************************

func IsCurMonth

func IsCurMonth(tm int64) bool

*********************************************************************************************** * SUMMARY: * WARNING: input param is timestamp. * HISTORY: * -create: 2021/12/04 12:40:35 ColeCai. ***********************************************************************************************

func IsCurWeek

func IsCurWeek(tm int64) bool

*********************************************************************************************** * SUMMARY: * WARNING: input param is timestamp. * HISTORY: * -create: 2021/12/04 12:36:24 ColeCai. ***********************************************************************************************

func IsSameDay

func IsSameDay(time1, time2 int64) bool

*********************************************************************************************** * SUMMARY: * WARNING: input params is timestamp. * HISTORY: * -create: 2021/12/04 12:32:40 ColeCai. ***********************************************************************************************

func IsSameMonth

func IsSameMonth(time1, time2 int64) bool

*********************************************************************************************** * SUMMARY: * WARNING: input params is timestamp. * HISTORY: * -create: 2021/12/04 12:39:42 ColeCai. ***********************************************************************************************

func IsSameWeek

func IsSameWeek(time1, time2 int64) bool

*********************************************************************************************** * SUMMARY: * WARNING: input params is timestamp. * HISTORY: * -create: 2021/12/04 12:35:16 ColeCai. ***********************************************************************************************

func NewProtoMsg

func NewProtoMsg(name string) (proto.Message, error)

*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/11/20 16:57:17 ColeCai. ***********************************************************************************************

func ProtoMsgName

func ProtoMsgName(msg proto.Message) string

*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/11/20 16:53:48 ColeCai. ***********************************************************************************************

func S2B

func S2B(s string) (b []byte)

*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/12/07 17:32:57 ColeCai. ***********************************************************************************************

func VpnClient

func VpnClient(addr string) (*http.Client, error)

*********************************************************************************************** * SUMMARY: * WARNING: * HISTORY: * -create: 2021/11/20 17:14:31 ColeCai. ***********************************************************************************************

Types

This section is empty.

Jump to

Keyboard shortcuts

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