Attrib takes Stringer instead of string
This commit is contained in:
@ -29,7 +29,7 @@ func simpleTemplate(paramType, convertExpr string) string {
|
||||
return fmt.Sprintf(`func %%s(value %s) hatmill.Attrib {
|
||||
return hatmill.Attrib{
|
||||
Key: "%%s",
|
||||
Value: %s,
|
||||
Value: String(%s),
|
||||
}
|
||||
}
|
||||
`, paramType, conversion)
|
||||
@ -39,7 +39,7 @@ func listTemplate(separator string) string {
|
||||
return fmt.Sprintf(`func %%s(value ...string) hatmill.Attrib {
|
||||
return hatmill.Attrib{
|
||||
Key: "%%s",
|
||||
Value: strings.Join(value, "%s"),
|
||||
Value: String(strings.Join(value, "%s")),
|
||||
}
|
||||
}
|
||||
`, separator)
|
||||
|
Reference in New Issue
Block a user