diff --git a/changelogs/UNRELEASED.md b/changelogs/UNRELEASED.md index 7734730..77a1f3e 100644 --- a/changelogs/UNRELEASED.md +++ b/changelogs/UNRELEASED.md @@ -2,6 +2,8 @@ ## 🆕 Added +- Created widget _ApplicationSign_ + ## 💥 Breaking Changed ## 🛠 Changed diff --git a/internal/.gitkeep b/internal/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/internal/pkg/widgets/application_sign.go b/internal/pkg/widgets/application_sign.go index 95f793a..8d0f5c6 100644 --- a/internal/pkg/widgets/application_sign.go +++ b/internal/pkg/widgets/application_sign.go @@ -7,10 +7,10 @@ type ApplicationSignWidget struct { year int16 } -func ApplicationSign(name string, year int16) Widget { - return ApplicationSignWidget{name, year} -} - -func (widget ApplicationSignWidget) Render() string { +func (widget *ApplicationSignWidget) Render() string { return `󰗦 ` + widget.name + ", " + strconv.Itoa(int(widget.year)) } + +func ApplicationSign(name string, year int16) Widget { + return &ApplicationSignWidget{name, year} +}