exif

package
v0.76.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeFields

func ExcludeFields(expression string) func(*Decoder) error

func IncludeFields

func IncludeFields(expression string) func(*Decoder) error

func WithDateDisabled

func WithDateDisabled(disabled bool) func(*Decoder) error

func WithLatLongDisabled

func WithLatLongDisabled(disabled bool) func(*Decoder) error

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(options ...func(*Decoder) error) (*Decoder, error)

func (*Decoder) Decode

func (d *Decoder) Decode(r io.Reader) (ex *Exif, err error)

type Exif

type Exif struct {
	Lat  float64
	Long float64
	Date time.Time
	Tags Tags
}

type Tags

type Tags map[string]interface{}

func (Tags) MarshalJSON

func (v Tags) MarshalJSON() ([]byte, error)

func (*Tags) UnmarshalJSON

func (v *Tags) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL