helpers

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertInterfaceMapKeys

func ConvertInterfaceMapKeys(input interface{}) interface{}

ConvertInterfaceMapKeys takes an arbitrary interface{} and converts any map[interface{}]interface{} it finds into map[string]interface{}. It does this recursively, so nested maps and slices are also processed YAML is great and annoying, and JSON encoding gets very upset sometimes.

func DiveIntoValidationError

func DiveIntoValidationError(e *jsonschema.ValidationError, causes *[]string, location string)

DiveIntoValidationError recursively dives into the validation error and collects all the causes, nicely printed and formatted in a string slice

func HashString

func HashString(s string) string

func Intern

func Intern(s string) string

func WrapBackticks

func WrapBackticks(slice []any) string

WrapBackticks wraps each s in backticks and joins with ", ".

func WrapBackticksString

func WrapBackticksString(s []string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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