Is it possible to match a nested map object's key?
For example I having a variable shown below:
input := map[string]interface{}{
"user": map[string]interface{}{
"name": "James",
"age": "20",
},
}
Example template
"Hi, my name is {{user.name}}, I'm {{user.age}} years old."
How do I get the {{user.name}} as the tags for template when calling ExecuteStringStd() ? I tried with {{user.name}} but it doesn't work.
Is it possible to match a nested map object's key?
For example I having a variable shown below:
Example template
How do I get the {{user.name}} as the tags for template when calling ExecuteStringStd() ? I tried with {{user.name}} but it doesn't work.