Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HeadingIsh *regexp.Regexp = regexp.MustCompile(`(?:^|\<\/p\>)\s*([\w\d\/\s]+)(?:<p>)`)
HeadingIsh type regexp for abstracts Not elegant but it works
Functions ¶
Types ¶
type Payload ¶
type Payload struct {
// contains filtered or unexported fields
}
Payload a payload to send back to browser
type Response ¶
type Response struct {
ResultSet *ResultSet `json:"response"`
}
Response corresponds to JSON fetched
type Result ¶
type Result struct { ID string `json:"id"` Title string `json:"title"` Abstract []string `json:"abstract_primary_display"` Journal string `json:"journal"` Author []string `json:"author"` SearchTerm string `json:"searchTerm"` Message string `json:"message"` PublicationDate string `json:"publication_date"` }
Result a query result
Click to show internal directories.
Click to hide internal directories.