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

Struct bindings #51

Open
abemedia opened this issue Jul 4, 2021 · 0 comments
Open

Struct bindings #51

abemedia opened this issue Jul 4, 2021 · 0 comments

Comments

@abemedia
Copy link

abemedia commented Jul 4, 2021

Right now bindings are a map so to use a struct I'd need to do something like the following:

bindings := map[string]interface{}{
    "data": myStructVariable,
}

It would be great if it was possible to pass in a struct directly to keep the liquid code accessing the variables cleaner.

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

No branches or pull requests

2 participants