Registry / utility / mitchellh-pointerstructure

mitchellh-pointerstructure

JSON →
library1.2.1gogounverified

Package pointerstructure provides functions for identifying a specific value within any Go structure using JSON Pointer syntax.

go get github.com/mitchellh/pointerstructure
INSTALL
IMPORT
SIG · MITCHELLH-POINTERS
M
mitchellh-pointerstructure
utilitygov1.2.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.

pointerstructure
github.com/mitchellh/pointerstructure

Get a value from a map using JSON Pointer

package main import ( "fmt" "github.com/mitchellh/pointerstructure" ) func main() { data := map[string]interface{}{"foo": "bar"} result, err := pointerstructure.Get(data, "/foo") if err != nil { panic(err) } fmt.Println(result) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mitchellh-pointerstructure — go get mitchellh-pointerstructure · libregistry