Skip to content
/ gpath Public

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

License

Notifications You must be signed in to change notification settings

tenntenn/gpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages