mirror of
https://github.com/NohamR/papeer.git
synced 2026-05-26 04:17:21 +00:00
refacto, better scrape strategy
This commit is contained in:
23
book/link.go
Normal file
23
book/link.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package book
|
||||
|
||||
type link struct {
|
||||
href string
|
||||
text string
|
||||
class string
|
||||
}
|
||||
|
||||
func NewLink(href, text, class string) link {
|
||||
return link{href, text, class}
|
||||
}
|
||||
|
||||
func (c link) Href() string {
|
||||
return c.href
|
||||
}
|
||||
|
||||
func (c link) Text() string {
|
||||
return c.text
|
||||
}
|
||||
|
||||
func (c link) Class() string {
|
||||
return c.class
|
||||
}
|
||||
Reference in New Issue
Block a user