Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider supporting struct-based documents #8

Open
finnbear opened this issue Nov 15, 2020 · 0 comments
Open

Please consider supporting struct-based documents #8

finnbear opened this issue Nov 15, 2020 · 0 comments

Comments

@finnbear
Copy link

Right now, this library supports interface-based documents of type map[string]interface{} and []interface{}. It would be useful to support any arbitrary struct-based or map[Stringer]anything-based document supported by encoding/json such as:

type Document struct {
    Foo Bar
}

type Bar struct {
    Number float64
}

With the pointer:
/Foo/Number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant