mirror of
https://github.com/NohamR/papeer.git
synced 2026-05-24 20:00:45 +00:00
19 lines
224 B
Go
19 lines
224 B
Go
package book
|
|
|
|
type link struct {
|
|
href string
|
|
text string
|
|
}
|
|
|
|
func NewLink(href, text string) link {
|
|
return link{href, text}
|
|
}
|
|
|
|
func (c link) Href() string {
|
|
return c.href
|
|
}
|
|
|
|
func (c link) Text() string {
|
|
return c.text
|
|
}
|