/
complex.go
50 lines (42 loc) · 1.27 KB
/
complex.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package nonest
// Code generated by github.com/GannettDigital/jstransform; DO NOT EDIT.
import "time"
type Complex struct {
Simple
Caption string `json:"caption"`
Credit string `json:"credit"`
// The available cropped images
Crops []ComplexCrops `json:"crops"`
Cutline string `json:"cutline,omitempty"`
DatePhotoTaken time.Time `json:"datePhotoTaken"`
Orientation string `json:"orientation"`
OriginalSize ComplexOriginalSize `json:"originalSize"`
// a type
Type string `json:"type"`
// Universal Resource Locator
URL ComplexURL `json:"URL"`
}
type ComplexCrops 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"`
}
type ComplexOriginalSize struct {
Height float64 `json:"height"`
Width float64 `json:"width"`
}
type ComplexURL struct {
// The full Canonical URL
Absolute string `json:"absolute"`
Meta ComplexURLMeta `json:"meta,omitempty"`
Publish string `json:"publish"`
}
type ComplexURLMeta struct {
Description string `json:"description"`
SiteName string `json:"siteName"`
}