We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
this
html:
{{#with (lookup mymap 'key')}} <p>0: {{this}}</p> <p>1: {{ID}}</p> <p>2: {{this.ID}}</p> {{/with}}
context:
type MyStruct struct { ID string `json:"id"` } ctx := map[string]interface{}{ "mymap": map[string]MyStruct{ "key": MyStruct{ ID: "42", }, }, }
expected result:
<p>0: {42}</p> <p>1: 42</p> <p>2: 42</p>
actual result:
<p>0: {42}</p> <p>1: </p> <p>2: </p>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
html:
context:
expected result:
actual result:
The text was updated successfully, but these errors were encountered: