Fixed Module path & updated dependency #4

Merged
SoXX merged 2 commits from dev/fix-module-path into main 2024-07-22 08:16:19 +00:00
22 changed files with 38 additions and 38 deletions
Showing only changes of commit 96f06a5838 - Show all commits

View File

@ -1,4 +1,4 @@
![Build Check Runner](https://git.anthrove.art/anthrove/otter-space-sdk/v2/actions/workflows/build_check.yaml/badge.svg)
![Build Check Runner](https://git.anthrove.art/Anthrove/otter-space-sdk/v2/actions/workflows/build_check.yaml/badge.svg)
[![Bugs](https://sonarqube.dragse.de/api/project_badges/measure?project=Anthrove---OtterSpace-SDK&metric=bugs&token=sqb_96012ffdd64ce721d7f9c82bfa77aa27a5c1fd38)](https://sonarqube.dragse.de/dashboard?id=Anthrove---OtterSpace-SDK)
[![Code Smells](https://sonarqube.dragse.de/api/project_badges/measure?project=Anthrove---OtterSpace-SDK&metric=code_smells&token=sqb_96012ffdd64ce721d7f9c82bfa77aa27a5c1fd38)](https://sonarqube.dragse.de/dashboard?id=Anthrove---OtterSpace-SDK)
[![Coverage](https://sonarqube.dragse.de/api/project_badges/measure?project=Anthrove---OtterSpace-SDK&metric=coverage&token=sqb_96012ffdd64ce721d7f9c82bfa77aa27a5c1fd38)](https://sonarqube.dragse.de/dashboard?id=Anthrove---OtterSpace-SDK)
@ -22,7 +22,7 @@ The OtterSpace SDK is a Go package for interacting with the OtterSpace API. It p
To install the OtterSpace SDK, you can use `go get`:
```shell
go get git.anthrove.art/anthrove/otter-space-sdk/v2
go get git.anthrove.art/Anthrove/otter-space-sdk/v2
````
## Usage
@ -35,8 +35,8 @@ import (
"context"
"log"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/database"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/database"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
)
func main() {

2
go.mod
View File

@ -1,4 +1,4 @@
module git.anthrove.art/anthrove/otter-space-sdk/v2
module git.anthrove.art/Anthrove/otter-space-sdk/v2
go 1.22.0

View File

@ -4,9 +4,9 @@ import (
"context"
"errors"
otterError "git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/error"
otterError "git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
log "github.com/sirupsen/logrus"
"gorm.io/gorm"
)

View File

@ -6,8 +6,8 @@ import (
_ "github.com/lib/pq"
"testing"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/anthrove/otter-space-sdk/v2/test"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/test"
"gorm.io/gorm"
)

View File

@ -4,8 +4,8 @@ import (
"context"
"errors"
otterError "git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
otterError "git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
log "github.com/sirupsen/logrus"
"gorm.io/gorm"
)

View File

@ -5,8 +5,8 @@ import (
"fmt"
"testing"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/anthrove/otter-space-sdk/v2/test"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/test"
"gorm.io/gorm"
)

View File

@ -4,8 +4,8 @@ import (
"context"
"errors"
otterError "git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
otterError "git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
log "github.com/sirupsen/logrus"
"gorm.io/gorm"

View File

@ -5,8 +5,8 @@ import (
"fmt"
"testing"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/anthrove/otter-space-sdk/v2/test"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/test"
"gorm.io/gorm"
)

View File

@ -6,8 +6,8 @@ import (
"gorm.io/gorm/clause"
otterError "git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
otterError "git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
log "github.com/sirupsen/logrus"
"gorm.io/gorm"
)

View File

@ -6,8 +6,8 @@ import (
"reflect"
"testing"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/anthrove/otter-space-sdk/v2/test"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/test"
"gorm.io/gorm"
)

View File

@ -5,8 +5,8 @@ import (
"errors"
"time"
otterError "git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
otterError "git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/error"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
gonanoid "github.com/matoous/go-nanoid/v2"
log "github.com/sirupsen/logrus"
"gorm.io/gorm"

View File

@ -7,8 +7,8 @@ import (
"testing"
"time"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/anthrove/otter-space-sdk/v2/test"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/test"
"gorm.io/gorm"
)

View File

@ -3,7 +3,7 @@ package database
import (
"context"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
)
type OtterSpace interface {

View File

@ -3,7 +3,7 @@ package database
import (
"context"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
)
type Post interface {

View File

@ -8,8 +8,8 @@ import (
"os"
"time"
"git.anthrove.art/anthrove/otter-space-sdk/v2/internal/postgres"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/internal/postgres"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
_ "github.com/lib/pq"
migrate "github.com/rubenv/sql-migrate"
log "github.com/sirupsen/logrus"

View File

@ -7,9 +7,9 @@ import (
"testing"
"time"
"git.anthrove.art/anthrove/otter-space-sdk/v2/internal/postgres"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/anthrove/otter-space-sdk/v2/test"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/internal/postgres"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/test"
"gorm.io/gorm"
)

View File

@ -3,7 +3,7 @@ package database
import (
"context"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
)
type Source interface {

View File

@ -3,7 +3,7 @@ package database
import (
"context"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
)
type Tag interface {

View File

@ -3,7 +3,7 @@ package database
import (
"context"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
)
type TagAlias interface {

View File

@ -3,7 +3,7 @@ package database
import (
"context"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
)
type TagGroup interface {

View File

@ -3,7 +3,7 @@ package database
import (
"context"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
)
type User interface {

View File

@ -8,7 +8,7 @@ import (
"strings"
"time"
"git.anthrove.art/anthrove/otter-space-sdk/v2/pkg/models"
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
migrate "github.com/rubenv/sql-migrate"
postgrescontainer "github.com/testcontainers/testcontainers-go/modules/postgres"
"gorm.io/driver/postgres"