Registry / testing / elastic-go-lookslike

elastic-go-lookslike

JSON →
library1.0.1gogounverified

Validates JSON-like nested map data structures against a set of expectations with custom validators and composition.

go get github.com/elastic/go-lookslike
INSTALL
IMPORT
SIG · ELASTIC-GO-LOOKSLI
E
elastic-go-lookslike
testinggov1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lookslike
github.com/elastic/go-lookslike

Validates a map against a spec and prints success.

package main import ( "fmt" "github.com/elastic/go-lookslike" ) func main() { result := lookslike.Strict(lookslike.Compose( lookslike.MustMatch(map[string]interface{}{"key": "value"}), ), map[string]interface{}{"key": "value"}) fmt.Println(result.Success) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
elastic-go-lookslike — go get elastic-go-lookslike · libregistry