Skip to content

Commit

Permalink
Add major version to module path (#337)
Browse files Browse the repository at this point in the history
* Update module path to include major version
* Update imports
* Upgrade dependencies
  • Loading branch information
mattjohnsonpint authored Nov 6, 2023
1 parent 9061dca commit ce42a66
Show file tree
Hide file tree
Showing 183 changed files with 556 additions and 351 deletions.
5 changes: 3 additions & 2 deletions age_constraint_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/elliotchance/tf"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
)

func TestAgeConstraint_String(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion age_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
)

Expand Down
5 changes: 3 additions & 2 deletions assert_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/stretchr/testify/assert"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

func assertAge(t *testing.T, age gedcom.Age, years float64, isEstimate bool, constraint gedcom.AgeConstraint) {
Expand Down
2 changes: 1 addition & 1 deletion baptism_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion birth_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion burial_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
)
Expand Down
5 changes: 3 additions & 2 deletions child_node_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
"testing"
)

func TestChildNode_Individual(t *testing.T) {
Expand Down
9 changes: 5 additions & 4 deletions cmd/gedcom/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ package main
import (
"flag"
"fmt"
"github.com/cheggaaa/pb"
"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/html"
"github.com/elliotchance/gedcom/util"
"log"
"os"
"os/signal"
"time"

"github.com/cheggaaa/pb"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/gedcom/v39/html"
"github.com/elliotchance/gedcom/v39/util"
)

func newDocumentFromGEDCOMFile(path string, optionAllowMultiLine, optionAllowInvalidIndents bool) (*gedcom.Document, error) {
Expand Down
9 changes: 5 additions & 4 deletions cmd/gedcom/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ package main

import (
"flag"
"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/html"
"github.com/elliotchance/gedcom/html/core"
"github.com/elliotchance/gedcom/util"
"log"
"os"

"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/gedcom/v39/html"
"github.com/elliotchance/gedcom/v39/html/core"
"github.com/elliotchance/gedcom/v39/util"
)

func runPublishCommand() {
Expand Down
7 changes: 4 additions & 3 deletions cmd/gedcom/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ package main

import (
"flag"
"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/q"
"github.com/elliotchance/gedcom/util"
"os"

"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/gedcom/v39/q"
"github.com/elliotchance/gedcom/v39/util"
)

func runQueryCommand() {
Expand Down
3 changes: 2 additions & 1 deletion cmd/gedcom/tune.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ package main
import (
"flag"
"fmt"
"github.com/elliotchance/gedcom"
"log"
"math/rand"
"os"
"runtime/pprof"

"github.com/elliotchance/gedcom/v39"
)

type TuneFlags struct {
Expand Down
3 changes: 2 additions & 1 deletion cmd/gedcom/warnings.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"flag"
"fmt"
"github.com/elliotchance/gedcom"
"os"

"github.com/elliotchance/gedcom/v39"
)

func runWarningsCommand() {
Expand Down
5 changes: 3 additions & 2 deletions copy_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/stretchr/testify/assert"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

func TestDeepCopy(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions date_constraint_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/stretchr/testify/assert"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

func TestDateConstraint_String(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion date_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (
"time"

"errors"
"github.com/elliotchance/gedcom"

"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion date_nodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
)

Expand Down
5 changes: 3 additions & 2 deletions date_range_comparison_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package gedcom_test

import (
"fmt"
"github.com/elliotchance/gedcom"
"github.com/stretchr/testify/assert"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

var dateRangeComparisonTests = []struct {
Expand Down
5 changes: 3 additions & 2 deletions date_range_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package gedcom_test

import (
"fmt"
"github.com/elliotchance/gedcom"
"github.com/stretchr/testify/assert"
"testing"
"time"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

// 4 Sep 19 Sep
Expand Down
2 changes: 1 addition & 1 deletion date_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
)
Expand Down
5 changes: 3 additions & 2 deletions dater_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/stretchr/testify/assert"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

func TestDates(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion death_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion document_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import (
"testing"

"fmt"
"github.com/elliotchance/gedcom"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

Expand Down
5 changes: 3 additions & 2 deletions duration_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/elliotchance/tf"
"testing"
"time"

"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
)

func TestDuration_String(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion equal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
)

Expand Down
2 changes: 1 addition & 1 deletion event_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion family_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion familysearch_id_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion filter_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package gedcom

import (
"flag"
"github.com/elliotchance/gedcom/util"

"github.com/elliotchance/gedcom/v39/util"
)

type FilterFlags struct {
Expand Down
5 changes: 3 additions & 2 deletions filter_flags_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/stretchr/testify/assert"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

func TestFilterFlags_Filter(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

Expand Down
5 changes: 3 additions & 2 deletions flatten_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/stretchr/testify/assert"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

func TestFlatten(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion format_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gedcom_test
import (
"testing"

"github.com/elliotchance/gedcom"
"github.com/elliotchance/gedcom/v39"
"github.com/stretchr/testify/assert"
)

Expand Down
5 changes: 3 additions & 2 deletions gedcomer_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gedcom_test

import (
"github.com/elliotchance/gedcom"
"github.com/elliotchance/tf"
"testing"

"github.com/elliotchance/gedcom/v39"
"github.com/elliotchance/tf"
)

func TestGEDCOMLine(t *testing.T) {
Expand Down
Loading

0 comments on commit ce42a66

Please sign in to comment.