gpath is a Go package to access a field by a path using
A path is represented by a Go's expression such as
You can use selector and index expressions into a path.
See usage and example in GoDoc.
NOTE: This package is experimental and may make backward-incompatible changes.
Use go get:
$ go get github.com/tenntenn/gpath
All usage are described in GoDoc.
mercari/go-httpdoc is a good example for gpath.