Compare commits

...

5 Commits

Author SHA1 Message Date
193e8ab203 feat: fixed go test path
All checks were successful
Gitea Build Check / Build (push) Successful in 1m24s
Gitea Build Check / Build (pull_request) Successful in 1m18s
2024-07-20 17:39:08 +02:00
f16760c748 feat: fixed example folder
Some checks failed
Gitea Build Check / Build (push) Failing after 6s
2024-07-20 17:36:08 +02:00
0bd467464a feat: fixed go test path 2024-07-20 17:35:28 +02:00
378fa072d8 feat: added CI
Some checks failed
Gitea Build Check / Build (push) Failing after 1m0s
2024-07-20 17:27:55 +02:00
0a2b432eb3 fix: corrected module paths 2024-07-20 11:04:53 +02:00
57 changed files with 145 additions and 110 deletions

View File

@ -0,0 +1,33 @@
name: Gitea Build Check
run-name: ${{ gitea.actor }} is testing the build
on:
push:
branches:
- ci/*
- dev/*
pull_request:
branches: [ "main" ]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup Go environment
uses: https://gitea.com/actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: false
- name: Execute Go Test files with coverage report
run: go test ./pkg/... -json -coverprofile="coverage.out" | tee "test-report.out"
- name: SonarQube
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"os" "os"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"os" "os"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"os" "os"

View File

@ -5,8 +5,8 @@ import (
"net/http" "net/http"
"os" "os"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
) )

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -5,8 +5,8 @@ import (
"net/http" "net/http"
"os" "os"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/builder" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/builder"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
) )

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/builder" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/builder"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/builder" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/builder"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/builder" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/builder"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/builder" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/builder"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/builder" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/builder"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/builder" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/builder"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"log" "log"
"net/http" "net/http"

4
go.mod
View File

@ -1,4 +1,4 @@
module git.dragse.it/anthrove/e621-sdk-go module git.anthrove.art/anthrove/e621-sdk-go
go 1.21.3 go 1.21.3
@ -8,4 +8,4 @@ require (
golang.org/x/time v0.3.0 golang.org/x/time v0.3.0
) )
require golang.org/x/net v0.18.0 // indirect require golang.org/x/net v0.18.0

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"strconv" "strconv"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
) )
type DMailsBuilder interface { type DMailsBuilder interface {

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,9 +2,9 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
) )
// UserBuilder represents a builder for constructing queries to retrieve user information. // UserBuilder represents a builder for constructing queries to retrieve user information.

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package builder
import ( import (
"context" "context"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/endpoints"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package builder package builder
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -2,9 +2,9 @@ package e621
import ( import (
"fmt" "fmt"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/builder" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/builder"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"golang.org/x/time/rate" "golang.org/x/time/rate"
"math" "math"

View File

@ -2,8 +2,8 @@ package endpoints
import ( import (
"fmt" "fmt"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"golang.org/x/net/html" "golang.org/x/net/html"
"net/http" "net/http"
"strings" "strings"

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
) )
// GetDmail retrieves a specific DMail by its ID. // GetDmail retrieves a specific DMail by its ID.

View File

@ -3,8 +3,8 @@ package endpoints
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"net/http" "net/http"
) )

View File

@ -1,8 +1,8 @@
package endpoints package endpoints
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -3,8 +3,8 @@ package endpoints
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"io" "io"
"net/http" "net/http"
"strings" "strings"

View File

@ -1,8 +1,8 @@
package endpoints package endpoints
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -3,8 +3,8 @@ package endpoints
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"net/http" "net/http"
) )

View File

@ -1,8 +1,8 @@
package endpoints package endpoints
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -3,8 +3,8 @@ package endpoints
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"net/http" "net/http"
) )

View File

@ -1,8 +1,8 @@
package endpoints package endpoints
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -3,8 +3,8 @@ package endpoints
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"net/http" "net/http"
) )

View File

@ -1,8 +1,8 @@
package endpoints package endpoints
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

View File

@ -3,8 +3,8 @@ package endpoints
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"net/http" "net/http"
) )

View File

@ -1,8 +1,8 @@
package endpoints package endpoints
import ( import (
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/model"
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/utils" "git.anthrove.art/anthrove/e621-sdk-go/pkg/e621/utils"
"github.com/jarcoal/httpmock" "github.com/jarcoal/httpmock"
"net/http" "net/http"
"testing" "testing"

2
sonar-project.properties Normal file
View File

@ -0,0 +1,2 @@
sonar.projectKey=Anthrove---e621-sdk
sonar.exclusions=example/*