util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqualJSON

func DeepEqualJSON(j1, j2 string) (bool, error)

func FULLFUNC

func FULLFUNC() string

func FUNC

func FUNC() string

func FileExists

func FileExists(filename string) bool

func GetSortedKeys added in v0.0.3

func GetSortedKeys(m map[string]interface{}) []string

func LINE

func LINE() string

func LocalExecute added in v0.0.3

func LocalExecute(cmd string) (string, error)

func LocalExecutef added in v0.0.3

func LocalExecutef(fs string, a ...interface{}) (string, error)

func LocalExecutefJsonMarshal added in v0.0.3

func LocalExecutefJsonMarshal(obj interface{},
	fs string, a ...interface{}) error

func NewBoolPointer added in v0.0.3

func NewBoolPointer(b bool) *bool

func NewCommandCompletion

func NewCommandCompletion(rootCmd *cobra.Command) *cobra.Command

func NewCommandVersion

func NewCommandVersion() *cobra.Command

func NewInt64Pointer added in v0.0.3

func NewInt64Pointer(v int64) *int64

func NewStringPointer added in v0.0.3

func NewStringPointer(v string) *string

func NewUint64Pointer added in v0.0.3

func NewUint64Pointer(v uint64) *uint64

func SplitMultiSep

func SplitMultiSep(s string, sep []string) []string

func VersionBuildDate

func VersionBuildDate() string

VersionBuildDate returns date when your binary is built

func VersionGitBranch

func VersionGitBranch() string

VersionGitBranch returns current Git branch name

func VersionGitSHA

func VersionGitSHA() string

VersionGitSHA returns Git hash string

func VersionGitTag

func VersionGitTag() string

VersionGitTag returns Git tag string

Types

This section is empty.

Jump to

Keyboard shortcuts

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