package addview import "strconv" import "github.com/tigorlazuardi/redmage/views/utils" type CountbackInputData struct { Value int64 Error string HXSwapOOB string } func (c *CountbackInputData) GetValue() string { if c.Value < 1 { return "100" } return strconv.FormatInt(c.Value, 10) } templ CountbackInput(data CountbackInputData) { }