helper

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateShortLayout  = "2006-01-02"
	DateFullLayout   = "2006-01-02 15:04:05"
	TimeLocationName = "Asia/Chongqing"
)

Variables

This section is empty.

Functions

func CurrentMethodName

func CurrentMethodName() string

func GetTypeName

func GetTypeName(typ reflect.Type) string

GetTypeName returns a string representing the name of the object typ. if the name is defined then it is used, otherwise, the name is derived from the Stringer interface.

the stringer returns something like *somepkg.MyStruct, so skip the *somepkg and return MyStruct

func IsEmpty

func IsEmpty(i interface{}) bool

func IsNotEmpty

func IsNotEmpty(i interface{}) bool

func Substring

func Substring(str string, start, length int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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