util

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentFuncName

func GetCurrentFuncName() string

GetCurrentFuncName returns caller name func in format: <package>.<type name>.<func name> example: "main.StructType.FuncName"

func GetFuncName

func GetFuncName(f interface{}) string

GetFuncName returns name of function in format: <package>.<type name>.<func name> example: "main.StructType.FuncName"

func GetTypeNameByObject

func GetTypeNameByObject(obj interface{}) string

GetTypeNameByObject returns type of the object in format: <package>.<type name> example: "main.StructType"

func JQ

func JQ(jqExpr string, input []byte) ([]byte, []byte, error)

JQ transform the input by jq expression in the error case returns the original input

func SED

func SED(sedExpr string, input []byte) ([]byte, []byte, error)

SED replace the input by sed expression in the error case returns the original input

func ToKebabCase

func ToKebabCase(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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