/
xmp.go
32 lines (28 loc) · 954 Bytes
/
xmp.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
package models
import (
"time"
//_ "trimmer.io/go-xmp/models"
)
// XMP
// DublinCore -
///// Modified DublinCore 17/04/2019 https://godoc.org/trimmer.io/go-xmp/models/dc#DublinCore
type DublinCore struct {
Creator string `xmp:"dc:creator"`
Description string `xmp:"dc:description"`
Format string `xmp:"dc:format"`
Rights string `xmp:"dc:rights"`
Source string `xmp:"dc:source"`
Subject []string `xmp:"dc:subject"`
Title string `xmp:"dc:title"`
}
// XmpBase -
///// Modified XmpBase 17/04/2019 https://godoc.org/trimmer.io/go-xmp/models/xmp_base#XmpBase
type XmpBase struct {
CreateDate time.Time `xmp:"xmp:CreateDate"`
CreatorTool string `xmp:"xmp:CreatorTool"`
Identifier string `xmp:"xmp:Identifier"`
Label string `xmp:"xmp:Label"`
MetadataDate time.Time `xmp:"xmp:MetadataDate"`
ModifyDate time.Time `xmp:"xmp:ModifyDate"`
Rating int `xmp:"xmp:Rating"`
}