resp

package
v0.0.0-...-d752177 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomizedStyle

func CustomizedStyle(keyColor, valueColor string) *pretty.Style

func GetResponseInBlocks

func GetResponseInBlocks(geoResp models.GeolocationResponse, keyColor *color.Color, valueColor *color.Color, colorize bool) string

func GetResponseInJson

func GetResponseInJson(geoResp []byte, compact bool, colorize bool, keyColor string, valueColor string) string

func GetResponseInTable

func GetResponseInTable(geoResp []byte) string

func GetResponseInTreeView

func GetResponseInTreeView(geoResp []byte, colorize bool, keyColor *color.Color, valueColor *color.Color) string

func GetResponseInXML

func GetResponseInXML(resp []byte) string

func GetResponseInYAML

func GetResponseInYAML(resp []byte) string

Types

type Style

type Style struct {
	Key, String, Number [2]string
	True, False, Null   [2]string
	Escape              [2]string
	Brackets            [2]string
	Append              func(dst []byte, c byte) []byte
}

Jump to

Keyboard shortcuts

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