Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MakeMap = map[string]string{
"NIKON CORPORATION": "Nikon",
"NIKON": "Nikon",
"FUJIFILM": "Fujifilm",
"Sony Ericsson": "Sony",
"OLYMPUS IMAGING CORP.": "Olympus",
"SIGMA": "Sigma",
"LEICA": "Leica",
"RICOH IMAGING COMPANY, LTD.": "Ricoh",
"KODAK": "Kodak",
"LG Electronics": "LG",
"samsung": "Samsung",
}
View Source
var ModelMap = map[string]string{
"FinePix X100": "X100",
}
View Source
var OnlyAlphaRegex = regexp.MustCompile(`\W+`)
View Source
var WhiteSpaceRegex = regexp.MustCompile(`\s+`)
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { // Make Camera make (Nikon, Canon, ...) Make string // Model Camera model (D750, 5D Mark IV, ...) Model string // DateTime Date and time DateTime time.Time // Ext File extension (.jpg, .png, .raw, .nef, ...) Ext string }
Data contains the relevant data extracted from a file's EXIF data.
func ReadExifData ¶
ReadExifData reads the EXIF data from a file and returns an ExifData struct.
Click to show internal directories.
Click to hide internal directories.