Fix quote function in template to render pointers properly
This commit is contained in:
parent
99419c75bc
commit
ed30be05bc
2 changed files with 4 additions and 0 deletions
|
|
@ -219,6 +219,8 @@ func quote(input interface{}) string {
|
|||
inputStr = input
|
||||
case fmt.Stringer:
|
||||
inputStr = input.String()
|
||||
case *string:
|
||||
inputStr = *input
|
||||
default:
|
||||
inputStr = fmt.Sprintf("%v", input)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue