TestLib

package
v0.0.0-...-bf7031d Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContainsOrRelated = func(selected []string, f string) bool {
	for _, sel := range selected {
		if sel == f {
			return true
		}

		if strings.HasPrefix(f, sel+".") {
			return true
		}

		if strings.HasPrefix(sel, f+".") {
			return true
		}
	}
	return false
}

Functions

func GetData

func GetData(key string) interface{}

func IsInMap

func IsInMap(m map[string]struct{}, value string) bool

func IsInSlice

func IsInSlice(slice []string, value string) bool

func IsValidSVG

func IsValidSVG(svgContent string) bool

func LoadData

func LoadData(key string, jsonData string, v interface{})

func ValidateJSON

func ValidateJSON(data []byte) error

func ValidateXML

func ValidateXML(data []byte) error

func ValidateYAML

func ValidateYAML(data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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