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

Make tagKey an exported var to be able to use another struct tag #60

Open
1 of 2 tasks
abemedia opened this issue Feb 7, 2022 · 0 comments
Open
1 of 2 tasks

Comments

@abemedia
Copy link

abemedia commented Feb 7, 2022

Checklist

  • I have searched the issue list
  • I have tested my example against Shopify Liquid. (This isn't necessary if the actual behavior is a panic, or an error for which IsTemplateError returns false.)

Detailed Description

I want to be able to use liquid on structs from other packages, where I have no control over the struct tags. Specifically I'd like to use the json tag.

Possible Solution

Amend the tagKey constant to be an exported var:

const tagKey = "liquid"

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