Skip to content

Commit

Permalink
Use modules, migrate import path
Browse files Browse the repository at this point in the history
  • Loading branch information
echa committed Nov 4, 2021
1 parent f9b6ca6 commit bbfd8f1
Show file tree
Hide file tree
Showing 53 changed files with 119 additions and 121 deletions.
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
go-xmp
===========

[![Build Status](https://travis-ci.org/trimmer-io/go-xmp.svg?branch=master)](https://travis-ci.org/trimmer-io/go-xmp)
[![GoDoc](https://godoc.org/trimmer.io/go-xmp?status.svg)](https://godoc.org/trimmer.io/go-xmp/xmp)
[![GoDoc](https://godoc.org/github.com/trimmer-io/go-xmp?status.svg)](https://godoc.org/github.com/trimmer-io/go-xmp/xmp)


go-xmp is a native [Go](http://golang.org/) SDK for the [Extensible Metadata Platform](http://www.adobe.com/devnet/xmp.html) (XMP) as defined by the Adobe XMP Specification [Part 1](http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart1.pdf), [Part 2](http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart2.pdf) and [Part 3](http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart3.pdf), a.k.a ISO 16684-1:2011(E).
Expand Down Expand Up @@ -52,15 +51,15 @@ Features
Documentation
-------------

- [API Reference](http://godoc.org/trimmer.io/go-xmp/xmp)
- [API Reference](http://godoc.org/github.com/trimmer-io/go-xmp/xmp)
- [FAQ](https://github.com/trimmer-io/go-xmp/wiki/FAQ)

Installation
------------

Install go-xmp using the "go get" command:

go get trimmer.io/go-xmp
go get github.com/trimmer-io/go-xmp

The Go distribution is go-xmp's only dependency.

Expand Down
8 changes: 4 additions & 4 deletions cmd/xmpinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
"os"
"path/filepath"

_ "trimmer.io/go-xmp/models"
"trimmer.io/go-xmp/models/dc"
"trimmer.io/go-xmp/models/xmp_base"
"trimmer.io/go-xmp/xmp"
_ "github.com/trimmer-io/go-xmp/models"
"github.com/trimmer-io/go-xmp/models/dc"
"github.com/trimmer-io/go-xmp/models/xmp_base"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
8 changes: 8 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/trimmer-io/go-xmp

go 1.17

require (
github.com/golang/snappy v0.0.4
github.com/montanaflynn/stats v0.6.6
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/montanaflynn/stats v0.6.6 h1:Duep6KMIDpY4Yo11iFsvyqJDyfzLF9+sndUKT+v64GQ=
github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow=
2 changes: 1 addition & 1 deletion models/cc/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package cc

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/crs/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package crs

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/crs/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"bytes"
"fmt"
"strconv"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

// Point "x, y"
Expand Down
2 changes: 1 addition & 1 deletion models/dc/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package dc

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/dc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package dc

import (
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

type DataType string
Expand Down
2 changes: 1 addition & 1 deletion models/digikam/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package digikam

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/dji/dji.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package dji

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions models/exif/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
"strconv"
"strings"

"trimmer.io/go-xmp/models/dc"
"trimmer.io/go-xmp/models/ps"
"trimmer.io/go-xmp/models/tiff"
"trimmer.io/go-xmp/models/xmp_base"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/dc"
"github.com/trimmer-io/go-xmp/models/ps"
"github.com/trimmer-io/go-xmp/models/tiff"
"github.com/trimmer-io/go-xmp/models/xmp_base"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/exif/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strings"
"time"

"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

const EXIF_DATE_FORMAT = "2006:01:02 15:04:05"
Expand Down
10 changes: 5 additions & 5 deletions models/id3/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ import (
"strings"
"time"

"trimmer.io/go-xmp/models/dc"
"trimmer.io/go-xmp/models/xmp_base"
"trimmer.io/go-xmp/models/xmp_dm"
"trimmer.io/go-xmp/models/xmp_rights"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/dc"
"github.com/trimmer-io/go-xmp/models/xmp_base"
"github.com/trimmer-io/go-xmp/models/xmp_dm"
"github.com/trimmer-io/go-xmp/models/xmp_rights"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions models/id3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"strings"
"time"

"trimmer.io/go-xmp/models/xmp_dm"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/xmp_dm"
"github.com/trimmer-io/go-xmp/xmp"
)

const (
Expand Down
42 changes: 21 additions & 21 deletions models/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ package models

// register all metadata models
import (
_ "trimmer.io/go-xmp/models/cc"
_ "trimmer.io/go-xmp/models/crs"
_ "trimmer.io/go-xmp/models/dc"
_ "trimmer.io/go-xmp/models/dji"
_ "trimmer.io/go-xmp/models/exif"
_ "trimmer.io/go-xmp/models/id3"
_ "trimmer.io/go-xmp/models/itunes"
_ "trimmer.io/go-xmp/models/ixml"
_ "trimmer.io/go-xmp/models/mp4"
_ "trimmer.io/go-xmp/models/pdf"
_ "trimmer.io/go-xmp/models/pm"
_ "trimmer.io/go-xmp/models/ps"
_ "trimmer.io/go-xmp/models/qt"
_ "trimmer.io/go-xmp/models/riff"
_ "trimmer.io/go-xmp/models/tiff"
_ "trimmer.io/go-xmp/models/xmp_base"
_ "trimmer.io/go-xmp/models/xmp_bj"
_ "trimmer.io/go-xmp/models/xmp_dm"
_ "trimmer.io/go-xmp/models/xmp_mm"
_ "trimmer.io/go-xmp/models/xmp_rights"
_ "trimmer.io/go-xmp/models/xmp_tpg"
_ "github.com/trimmer-io/go-xmp/models/cc"
_ "github.com/trimmer-io/go-xmp/models/crs"
_ "github.com/trimmer-io/go-xmp/models/dc"
_ "github.com/trimmer-io/go-xmp/models/dji"
_ "github.com/trimmer-io/go-xmp/models/exif"
_ "github.com/trimmer-io/go-xmp/models/id3"
_ "github.com/trimmer-io/go-xmp/models/itunes"
_ "github.com/trimmer-io/go-xmp/models/ixml"
_ "github.com/trimmer-io/go-xmp/models/mp4"
_ "github.com/trimmer-io/go-xmp/models/pdf"
_ "github.com/trimmer-io/go-xmp/models/pm"
_ "github.com/trimmer-io/go-xmp/models/ps"
_ "github.com/trimmer-io/go-xmp/models/qt"
_ "github.com/trimmer-io/go-xmp/models/riff"
_ "github.com/trimmer-io/go-xmp/models/tiff"
_ "github.com/trimmer-io/go-xmp/models/xmp_base"
_ "github.com/trimmer-io/go-xmp/models/xmp_bj"
_ "github.com/trimmer-io/go-xmp/models/xmp_dm"
_ "github.com/trimmer-io/go-xmp/models/xmp_mm"
_ "github.com/trimmer-io/go-xmp/models/xmp_rights"
_ "github.com/trimmer-io/go-xmp/models/xmp_tpg"
)
2 changes: 1 addition & 1 deletion models/itunes/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package itunes
import (
"fmt"

"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/itunes/movieinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package itunes

import (
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
// "howett.net/plist"
)

Expand Down
4 changes: 2 additions & 2 deletions models/ixml/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
"fmt"
"strings"

"trimmer.io/go-xmp/models/xmp_dm"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/xmp_dm"
"github.com/trimmer-io/go-xmp/xmp"
)

const ixmlVersion = "2.0"
Expand Down
4 changes: 2 additions & 2 deletions models/ixml/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"fmt"
"strings"

"trimmer.io/go-xmp/models/xmp_dm"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/xmp_dm"
"github.com/trimmer-io/go-xmp/xmp"
)

type Bool bool
Expand Down
4 changes: 2 additions & 2 deletions models/mp4/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package mp4

import (
"fmt"
"trimmer.io/go-xmp/models/qt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/qt"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions models/pdf/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package pdf

import (
"fmt"
"trimmer.io/go-xmp/models/dc"
"trimmer.io/go-xmp/models/xmp_base"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/dc"
"github.com/trimmer-io/go-xmp/models/xmp_base"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/pm/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strings"
"time"

"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/ps/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package ps

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions models/qt/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ import (
"fmt"
"strings"

"trimmer.io/go-xmp/models/ixml"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/ixml"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions models/qt/qt_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"strconv"
"strings"

"trimmer.io/go-xmp/models/tiff"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/tiff"
"github.com/trimmer-io/go-xmp/xmp"
)

// QuickTime Metadata Keys written by the "mdta" handler using Reverse DNS names.
Expand Down
2 changes: 1 addition & 1 deletion models/qt/qt_player.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package qt

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

type QtPlayer struct {
Expand Down
2 changes: 1 addition & 1 deletion models/qt/qt_proapps.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package qt

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

type QtProApps struct {
Expand Down
2 changes: 1 addition & 1 deletion models/qt/qt_userdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package qt

import (
"fmt"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

// QuickTime User Data as written by the "udta" handler using FourCC atom names.
Expand Down
2 changes: 1 addition & 1 deletion models/qt/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
"strings"

"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

type LocationRole int
Expand Down
8 changes: 4 additions & 4 deletions models/riff/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ package riff

import (
"fmt"
"trimmer.io/go-xmp/models/dc"
"trimmer.io/go-xmp/models/xmp_base"
"trimmer.io/go-xmp/models/xmp_dm"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/models/dc"
"github.com/trimmer-io/go-xmp/models/xmp_base"
"github.com/trimmer-io/go-xmp/models/xmp_dm"
"github.com/trimmer-io/go-xmp/xmp"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/riff/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package riff

import (
"strings"
"trimmer.io/go-xmp/xmp"
"github.com/trimmer-io/go-xmp/xmp"
)

type StringArray xmp.StringArray
Expand Down
Loading

0 comments on commit bbfd8f1

Please sign in to comment.