misc

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckJSONTags

func CheckJSONTags(typ reflect.Type, terms ...string) error

CheckJSONTags ...

func CheckStructTags

func CheckStructTags(tagAttr string, typ reflect.Type, terms ...string) error

CheckStructTags ...

func CheckXMLTags added in v0.1.12

func CheckXMLTags(typ reflect.Type, terms ...string) error

CheckXMLTags ...

func GetSortedMapKeys added in v0.1.11

func GetSortedMapKeys(m interface{}) interface{}

GetSortedMapKeys ...

func SnakecasedFromCamelcased

func SnakecasedFromCamelcased(s string, terms ...string) string

SnakecasedFromCamelcased converts a camelcased string into a snakecased string with lowercased components.

func SplitCamelcasedString

func SplitCamelcasedString(s string, terms ...string) []string

SplitCamelcasedString splits up a camelcased string into components.

Types

type DeepInequalityReason added in v0.1.10

type DeepInequalityReason struct {
	IsError bool
	Text    string
	Args    []interface{}
}

DeepInequalityReason ...

func IsDeeplyEqual added in v0.1.10

func IsDeeplyEqual(a1, a2 interface{}) (bool, *DeepInequalityReason)

IsDeeplyEqual ...

func (*DeepInequalityReason) String added in v0.1.10

func (r *DeepInequalityReason) String() string

Jump to

Keyboard shortcuts

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