Skip to content

Commit

Permalink
Bump to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
rgalanakis committed Jul 31, 2024
1 parent 572476a commit 23d0bb9
Show file tree
Hide file tree
Showing 22 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion api/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"
"github.com/labstack/echo/v4"
"github.com/lithictech/go-aperitif/logctx"
"github.com/lithictech/go-aperitif/v2/logctx"
)

// StdContext returns a standard context from an echo context.
Expand Down
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package api
import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/lithictech/go-aperitif/logctx"
"github.com/lithictech/go-aperitif/v2/logctx"
"log/slog"
"net/http"
"os"
Expand Down
10 changes: 5 additions & 5 deletions api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package api_test
import (
"errors"
"github.com/labstack/echo/v4"
"github.com/lithictech/go-aperitif/api"
"github.com/lithictech/go-aperitif/api/apiparams"
. "github.com/lithictech/go-aperitif/api/echoapitest"
. "github.com/lithictech/go-aperitif/apitest"
"github.com/lithictech/go-aperitif/logctx"
"github.com/lithictech/go-aperitif/v2/api"
"github.com/lithictech/go-aperitif/v2/api/apiparams"
. "github.com/lithictech/go-aperitif/v2/api/echoapitest"
. "github.com/lithictech/go-aperitif/v2/apitest"
"github.com/lithictech/go-aperitif/v2/logctx"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/rgalanakis/golangal"
Expand Down
2 changes: 1 addition & 1 deletion api/apiparams/apiparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package apiparams

import (
"fmt"
"github.com/lithictech/go-aperitif/validator"
"github.com/lithictech/go-aperitif/v2/validator"
"net/http"
"reflect"
"time"
Expand Down
6 changes: 3 additions & 3 deletions api/apiparams/apiparams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package apiparams_test
import (
"fmt"
"github.com/labstack/echo/v4"
"github.com/lithictech/go-aperitif/api/apiparams"
. "github.com/lithictech/go-aperitif/api/echoapitest"
. "github.com/lithictech/go-aperitif/apitest"
"github.com/lithictech/go-aperitif/v2/api/apiparams"
. "github.com/lithictech/go-aperitif/v2/api/echoapitest"
. "github.com/lithictech/go-aperitif/v2/apitest"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/rgalanakis/golangal"
Expand Down
4 changes: 2 additions & 2 deletions api/apiparams/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package apiparams_test

import (
"encoding/json"
"github.com/lithictech/go-aperitif/api/apiparams"
"github.com/lithictech/go-aperitif/convext"
"github.com/lithictech/go-aperitif/v2/api/apiparams"
"github.com/lithictech/go-aperitif/v2/convext"
"net/http"
"strings"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion api/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/lithictech/go-aperitif/logctx"
"github.com/lithictech/go-aperitif/v2/logctx"
"net/http"
"runtime"
"sync/atomic"
Expand Down
4 changes: 2 additions & 2 deletions api/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package api
import (
"fmt"
"github.com/labstack/echo/v4"
"github.com/lithictech/go-aperitif/api/apiparams"
"github.com/lithictech/go-aperitif/logctx"
"github.com/lithictech/go-aperitif/v2/api/apiparams"
"github.com/lithictech/go-aperitif/v2/logctx"
"log/slog"
"net/http"
"runtime"
Expand Down
8 changes: 4 additions & 4 deletions api/preflight/preflight_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package preflight_test
import (
"errors"
"github.com/labstack/echo/v4"
"github.com/lithictech/go-aperitif/api"
. "github.com/lithictech/go-aperitif/api/echoapitest"
"github.com/lithictech/go-aperitif/api/preflight"
. "github.com/lithictech/go-aperitif/apitest"
"github.com/lithictech/go-aperitif/v2/api"
. "github.com/lithictech/go-aperitif/v2/api/echoapitest"
"github.com/lithictech/go-aperitif/v2/api/preflight"
. "github.com/lithictech/go-aperitif/v2/apitest"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/rgalanakis/golangal"
Expand Down
6 changes: 3 additions & 3 deletions api/spa/spa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package spa_test

import (
"github.com/labstack/echo/v4"
. "github.com/lithictech/go-aperitif/api/echoapitest"
"github.com/lithictech/go-aperitif/api/spa"
. "github.com/lithictech/go-aperitif/apitest"
. "github.com/lithictech/go-aperitif/v2/api/echoapitest"
"github.com/lithictech/go-aperitif/v2/api/spa"
. "github.com/lithictech/go-aperitif/v2/apitest"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/rgalanakis/golangal"
Expand Down
2 changes: 1 addition & 1 deletion api/trace_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"github.com/google/uuid"
"github.com/labstack/echo/v4"
"github.com/lithictech/go-aperitif/logctx"
"github.com/lithictech/go-aperitif/v2/logctx"
)

const TraceIdHeader = "Trace-Id"
Expand Down
2 changes: 1 addition & 1 deletion async/async.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package async

import "github.com/lithictech/go-aperitif/mariobros"
import "github.com/lithictech/go-aperitif/v2/mariobros"

type Goer func(name string, f func())

Expand Down
2 changes: 1 addition & 1 deletion async/async_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package async_test

import (
"github.com/lithictech/go-aperitif/async"
"github.com/lithictech/go-aperitif/v2/async"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/lithictech/go-aperitif
module github.com/lithictech/go-aperitif/v2

go 1.22

Expand Down
2 changes: 1 addition & 1 deletion kronos/kronos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package kronos_test

import (
"fmt"
"github.com/lithictech/go-aperitif/kronos"
"github.com/lithictech/go-aperitif/v2/kronos"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"math/rand"
Expand Down
2 changes: 1 addition & 1 deletion logctx/logctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package logctx_test

import (
"context"
"github.com/lithictech/go-aperitif/logctx"
"github.com/lithictech/go-aperitif/v2/logctx"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"log/slog"
Expand Down
2 changes: 1 addition & 1 deletion parallel/parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package parallel
import (
"errors"
"github.com/hashicorp/go-multierror"
"github.com/lithictech/go-aperitif/mariobros"
"github.com/lithictech/go-aperitif/v2/mariobros"
"sync"
)

Expand Down
2 changes: 1 addition & 1 deletion parallel/parallel_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package parallel_test

import (
"github.com/lithictech/go-aperitif/parallel"
"github.com/lithictech/go-aperitif/v2/parallel"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"sync"
Expand Down
2 changes: 1 addition & 1 deletion quiz/quiz_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package quiz_test

import (
"github.com/lithictech/go-aperitif/quiz"
"github.com/lithictech/go-aperitif/v2/quiz"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"testing"
Expand Down
4 changes: 2 additions & 2 deletions stopwatch/stopwatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package stopwatch_test

import (
"context"
"github.com/lithictech/go-aperitif/logctx"
"github.com/lithictech/go-aperitif/stopwatch"
"github.com/lithictech/go-aperitif/v2/logctx"
"github.com/lithictech/go-aperitif/v2/stopwatch"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"log/slog"
Expand Down
2 changes: 1 addition & 1 deletion validator/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package validator_test

import (
"errors"
"github.com/lithictech/go-aperitif/validator"
"github.com/lithictech/go-aperitif/v2/validator"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion validator/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package validator

import (
"errors"
"github.com/lithictech/go-aperitif/kronos"
"github.com/lithictech/go-aperitif/v2/kronos"
"github.com/rgalanakis/validator"
"net/url"
"regexp"
Expand Down

0 comments on commit 23d0bb9

Please sign in to comment.