utils

package
v0.19.3-dev.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(format string, a ...interface{}) string

func DiffPrettyText

func DiffPrettyText(a, b string) string

func ExpandPath added in v0.7.0

func ExpandPath(path string) (string, error)

func JSONEqual

func JSONEqual(a interface{}, b interface{}) bool

func JSONValue

func JSONValue(o interface{}) []byte

func PrintlnToStdErr

func PrintlnToStdErr(format string, args ...string)

func ReplaceNewLine

func ReplaceNewLine(s string) string

func ShortHomePath added in v0.12.0

func ShortHomePath(path string) string

func StringInterfaceMapEqual

func StringInterfaceMapEqual(a map[string]interface{}, b map[string]interface{}) bool

func StringSliceInclude

func StringSliceInclude(items []string, check string) bool

func Underline

func Underline(format string, a ...interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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