Skip to content

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

@abemedia

Description

@abemedia

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions