go: github.com/shurcooL/go/reflectfind Index | Files

package reflectfind

import "github.com/shurcooL/go/reflectfind"

Package reflectfind offers funcs to perform deep-search via reflect to find instances that satisfy given query.


Package Files


func All Uses

func All(d interface{}, query func(i interface{}) bool) map[interface{}]struct{}

All finds all instances of i that satisfy query within d.

func First Uses

func First(d interface{}, query func(i interface{}) bool) interface{}

First finds the first instances of i that satisfies query within d.

Package reflectfind imports 1 packages (graph) and is imported by 4 packages. Updated 2016-07-21. Refresh now. Tools for package owners.