teamlead-dashboard/internal/pkg/widgets/application_sign.go

17 lines
325 B
Go
Raw Normal View History

2024-02-02 20:53:55 +00:00
package widgets
import "strconv"
type ApplicationSignWidget struct {
name string
year int16
}
func ApplicationSign(name string, year int16) Widget {
return ApplicationSignWidget{name, year}
}
func (widget ApplicationSignWidget) Render() string {
return `󰗦 ` + widget.name + ", " + strconv.Itoa(int(widget.year))
}