Fixed type of span attribute
This commit is contained in:
@ -636,10 +636,10 @@ func Sizes(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Span creates a "span" attribute
|
||||
func Span(value string) hatmill.Attrib {
|
||||
func Span(value int) hatmill.Attrib {
|
||||
return hatmill.Attrib{
|
||||
Key: "span",
|
||||
Value: value,
|
||||
Value: strconv.FormatInt(int64(value), 10),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user