Skip to content
gpath is a Go package to access a field by a path using reflect pacakge
Go
Branch: master
Clone or download
Latest commit 3e6e957 Jun 4, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml Fix travis.yml Jun 4, 2017
LICENSE Add LICENSE file Jun 4, 2017
README.md Add a link to httpdoc Jun 4, 2017
eval.go
gpath.go Fix godoc about map key and array/slice index Jun 4, 2017
gpath_test.go Add tests and eval.go Jun 4, 2017

README.md

gpath Go Documentation Travis Go Report Card codecov

gpath is a Go package to access a field by a path using reflect pacakge.

A path is represented by a Go's expression such as A.B.C[0]. 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.

Install

Use go get:

$ go get github.com/tenntenn/gpath

Usage

All usage are described in GoDoc.

mercari/go-httpdoc is a good example for gpath.

You can’t perform that action at this time.