util

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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