str

package
v0.9.40 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelRegexp

func CamelRegexp(str string) string

CamelRegexp return the given string as space delimeted. Note! it's slow. Use Decamel instead.

func Decamel

func Decamel(s string) string

Decamel return the given string as space delimeted. It's optimized to split and decamel function names returned from Go call stacks. For more information see its test cases.

func FuncName

func FuncName(skip int, long bool) (n, fname string, ln int, ok bool)

FuncName is similar to runtime.Caller, but instead to return program counter or function name with full path, FuncName returns just function name, separated filename, and line number. If frame cannot be found ok is false.

See more information from runtime.Caller. The skip tells how many stack frames are skipped. Note, that FuncName calculates itself to skip frames.

Types

This section is empty.

Jump to

Keyboard shortcuts

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