str

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 DecamelRegexp added in v0.9.5

func DecamelRegexp(str string) string

DecamelRegexp return the given string as space delimeted. Note! It's slow. Use Decamel instead. It's left here for learning purposes.

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