Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Complex ¶
type Complex struct {
Simple
Caption string `json:"caption"`
Credit string `json:"credit"`
// The available cropped images
Crops []struct {
Height float64 `json:"height"`
Name string `json:"name"`
// full path to the cropped image file
Path string `json:"path"`
// a long
// multi-line description
RelativePath string `json:"relativePath"`
Width float64 `json:"width"`
} `json:"crops"`
Cutline string `json:"cutline,omitempty"`
DatePhotoTaken time.Time `json:"datePhotoTaken"`
Orientation string `json:"orientation"`
OriginalSize struct {
Height float64 `json:"height"`
Width float64 `json:"width"`
} `json:"originalSize"`
// a type
Type string `json:"type"`
// Universal Resource Locator
URL struct {
// The full Canonical URL
Absolute string `json:"absolute"`
Meta struct {
Description string `json:"description"`
SiteName string `json:"siteName"`
} `json:"meta,omitzero"`
Publish string `json:"publish"`
} `json:"URL"`
}
type Nested ¶
type Nested struct {
// Information related to the International Fact-Checking Network (IFCN) program
FactCheckClaims []struct {
// The factCheck appearanceURLs
AppearanceURLs []struct {
// The original flag
Original bool `json:"original,omitempty"`
// The appearance url
Url string `json:"url"`
} `json:"appearanceURLs,omitempty"`
// The factCheck author
Author string `json:"author,omitempty"`
// The factCheck claim
Claim string `json:"claim,omitempty"`
// The date of the factCheck
Date string `json:"date,omitempty"`
// The factCheck rating
Rating string `json:"rating,omitempty"`
} `json:"factCheckClaims"`
}
type Simple ¶
type Simple struct {
Contributors []struct {
ContributorId string `json:"contributorId,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
} `json:"contributors,omitempty"`
Height int64 `json:"height,omitempty"`
SomeDateObj struct {
Dates []time.Time `json:"dates,omitempty"`
} `json:"someDateObj,omitzero"`
Type string `json:"type"`
Visible bool `json:"visible,omitempty"`
Width float64 `json:"width,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.