Awesome Go

gpath

CategoryReflection
SubcategoryReflection
Stars0

Library to simplify access struct fields with Go's expression in reflection

About gpath

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.

Frequently Asked Questions

What is gpath?

gpath is a Reflection library for the Go programming language. Library to simplify access struct fields with Go's expression in reflection

How do I install gpath?

Install gpath with the Go module system using `go get tenntenn/gpath`. Check the repository for the current installation instructions.

What category does gpath belong to?

gpath is listed under Reflection, specifically Reflection.

← Back to Reflection