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

Source Files