I’m currently using the consul SDK to get some acl policies.
It seems the rules are returned as a string, but that string is an HCL formatted string.
When looking at the hcl2/hclparser library for go, it seems to be very focused on loading the data from a file, but it seems unecessary to me, to write this string to a file, then load the file to parse the HCL into a manageable schema/object within the code.
Is there a simple way to just load the string into the hcl parser so I can just parse the string onto a struct?