cherryUtils

package
v1.1.30 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 2 Imported by: 16

Documentation

Overview

Package cherryUtils file from https://github.com/gogf/gf

Package cherryUtils file from https://github.com/gogf/gf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty added in v1.1.0

func IsEmpty(value interface{}) bool

IsEmpty checks whether given <value> empty. It returns true if <value> is in: 0, nil, false, "", len(slice/map/chan) == 0, or else it returns false.

func IsLetter added in v1.1.0

func IsLetter(b byte) bool

IsLetter checks whether the given byte b is a letter.

func IsLetterLower added in v1.1.0

func IsLetterLower(b byte) bool

IsLetterLower checks whether the given byte b is in lower case.

func IsLetterUpper added in v1.1.0

func IsLetterUpper(b byte) bool

IsLetterUpper checks whether the given byte b is in upper case.

func IsNil added in v1.1.0

func IsNil(value interface{}, traceSource ...bool) bool

IsNil checks whether given <value> is nil. Parameter <traceSource> is used for tracing to the source variable if given <value> is type of a pinter that also points to a pointer. It returns nil if the source is nil when <traceSource> is true. Note that it might use reflect feature which affects performance a little bit.

func IsNumeric added in v1.1.0

func IsNumeric(s string) bool

IsNumeric checks whether the given string s is numeric. Note that float string like "123.456" is also numeric.

func IsPtr added in v1.1.30

func IsPtr(value interface{}) bool

IsPtr is ptr type

func Try added in v1.1.0

func Try(tryFn func(), catchFn func(errString string)) bool

func UcFirst added in v1.1.0

func UcFirst(s string) string

UcFirst returns a copy of the string s with the first letter mapped to its upper case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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