util

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Black

func Black() *colorPrinter

func Blue

func Blue() *colorPrinter

func Cyan

func Cyan() *colorPrinter

func GetConfigFileDir

func GetConfigFileDir() (string, error)

func Green

func Green() *colorPrinter

func IsJsonArray

func IsJsonArray(value string) bool

func IsRepeatedField

func IsRepeatedField(f string) bool

func Magenta

func Magenta() *colorPrinter

func ParseToJsonArrayOrObject

func ParseToJsonArrayOrObject(s string) (interface{}, bool)

ParseToJsonArrayOrObject try to parse string to json array or json object

func Print

func Print(a ...interface{}) *colorPrinter

func Printf

func Printf(format string, a ...interface{}) *colorPrinter

func Println

func Println(a ...interface{}) *colorPrinter

func Red

func Red() *colorPrinter

func ShowJson added in v1.0.1

func ShowJson(data interface{}, color bool)

ShowJson print data as json data should be map[string]interface{}

func White

func White() *colorPrinter

func Yellow

func Yellow() *colorPrinter

Types

This section is empty.

Jump to

Keyboard shortcuts

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