Registry / utility / facebookgo-subset

facebookgo-subset

JSON →
library0.0.0-20200203212716-c811ad88dec4gogounverified

Package subset implements logic to check if a value is a subset of another using reflect.

go get github.com/facebookgo/subset
INSTALL
IMPORT
SIG · FACEBOOKGO-SUBSET
F
facebookgo-subset
utilitygov0.0.0-20200203212716-c811ad88dec4
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.

subset
github.com/facebookgo/subset

Check if one struct is a subset of another.

package main import ( "fmt" "github.com/facebookgo/subset" ) func main() { type A struct{ X int } type B struct{ X int; Y string } a := A{X: 1} b := B{X: 1, Y: "test"} fmt.Println(subset.Check(a, b)) // true }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200203212716-c811ad88dec4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
facebookgo-subset — go get facebookgo-subset · libregistry