refacto progress bars, images option

This commit is contained in:
lapwat
2021-10-06 23:41:23 +02:00
parent ee41e49dd1
commit 2d1d5a964a
9 changed files with 189 additions and 113 deletions

View File

@@ -3,11 +3,10 @@ package book
type link struct {
href string
text string
class string
}
func NewLink(href, text, class string) link {
return link{href, text, class}
func NewLink(href, text string) link {
return link{href, text}
}
func (c link) Href() string {
@@ -17,7 +16,3 @@ func (c link) Href() string {
func (c link) Text() string {
return c.text
}
func (c link) Class() string {
return c.class
}