-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
internal/adapters/tex/texcalendar/week_name_calendar_little.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package texcalendar | ||
|
||
type WeekNameCalendarLittle struct{} | ||
|
||
func NewWeekNameCalendarLittle() WeekNameCalendarLittle { | ||
return WeekNameCalendarLittle{} | ||
} | ||
|
||
func (r WeekNameCalendarLittle) String() string { | ||
return `W` | ||
} |
15 changes: 15 additions & 0 deletions
15
internal/adapters/tex/texcalendar/weekday_calendar_little.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package texcalendar | ||
|
||
import "github.com/kudrykv/latex-yearly-planner/internal/core/calendar" | ||
|
||
type WeekdayCalendarLittle struct { | ||
Weekday calendar.Weekday | ||
} | ||
|
||
func NewWeekdayCalendarLittle(weekday calendar.Weekday) WeekdayCalendarLittle { | ||
return WeekdayCalendarLittle{Weekday: weekday} | ||
} | ||
|
||
func (r WeekdayCalendarLittle) String() string { | ||
return r.Weekday.String()[:1] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters