Documentation
¶
Index ¶
- func CurrentMicros() int64
- func CurrentMillis() int64
- func IsLowerCase(r rune) bool
- func IsUpperCase(r rune) bool
- func ToCamelCase(s string) string
- func ToLower(s string) string
- func ToLowerCase(r rune) rune
- func ToSnakeCase(s string) string
- func ToUpper(s string) string
- func ToUpperCase(r rune) rune
- func UnExport(text string) bool
- func UpperFirst(s string) string
- type ElapsedTimer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLowerCase ¶ added in v1.0.17
IsLowerCase returns true if the rune in a-z
func IsUpperCase ¶ added in v1.0.17
IsUpperCase returns true if the rune in A-Z
func ToCamelCase ¶ added in v1.0.17
ToCamelCase returns a copy string by converting snake case into camel case
func ToLowerCase ¶ added in v1.0.17
ToLowerCase converts rune into lower case
func ToSnakeCase ¶ added in v1.0.17
ToSnakeCase returns a copy string by converting camel case into snake case
func ToUpperCase ¶ added in v1.0.17
ToUpperCase converts rune into upper case
func UpperFirst ¶ added in v1.0.17
UpperFirst converts s[0] into upper case
Types ¶
type ElapsedTimer ¶
type ElapsedTimer struct {
// contains filtered or unexported fields
}
A ElapsedTimer is a timer to track the elapsed time.
func (*ElapsedTimer) Duration ¶
func (et *ElapsedTimer) Duration() time.Duration
Duration returns the elapsed time.
func (*ElapsedTimer) Elapsed ¶
func (et *ElapsedTimer) Elapsed() string
Elapsed returns the string representation of elapsed time.
func (*ElapsedTimer) ElapsedMs ¶
func (et *ElapsedTimer) ElapsedMs() string
ElapsedMs returns the elapsed time of string on milliseconds.
Click to show internal directories.
Click to hide internal directories.