mirror of
https://github.com/NohamR/papeer.git
synced 2026-05-26 04:17:21 +00:00
add pub date to chapter skeleton
This commit is contained in:
11
book/link.go
11
book/link.go
@@ -1,10 +1,13 @@
|
||||
package book
|
||||
|
||||
import "time"
|
||||
|
||||
type link struct {
|
||||
Href string `json:"url"`
|
||||
Text string `json:"name"`
|
||||
Href string `json:"url"`
|
||||
Text string `json:"name"`
|
||||
Date *time.Time `json:"date"`
|
||||
}
|
||||
|
||||
func NewLink(href, text string) link {
|
||||
return link{href, text}
|
||||
func NewLink(href, text string, date *time.Time) link {
|
||||
return link{href, text, date}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user