Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compact

func Compact(t interface{}) string

Compact returns a compact printed version of an interface{} via marshalling into JSON

func DoubleUnorderedEqual

func DoubleUnorderedEqual(a, b []string) bool

DoubleUnorderedEqual compares two arrays of strings to see they have the same member it runs unorderedEqual twice to get a correct result

func Pretty

func Pretty(t interface{}) string

Pretty returns a pretty printed version of an interface{} via Marshalling into JSON

func SortCompare

func SortCompare(a, b []string) bool

SortCompare sorts and then compares arrays of strings putting Husain's code into a function... BTW this is 10x faster for a few dozen entries in each list

Types

This section is empty.

Jump to

Keyboard shortcuts

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