From 44b64a5c9f7ed80f870b3a7fd116652f92ae17a2 Mon Sep 17 00:00:00 2001 From: O3H Date: Sat, 6 Apr 2024 14:55:33 +0100 Subject: [PATCH] fix module --- common/package.go | 2 +- experimental/api.go | 2 +- experimental/community.go | 4 ++-- experimental/package.go | 4 ++-- experimental/validation.go | 2 +- experimental/wiki.go | 2 +- go.mod | 5 ++++- go.sum | 3 +++ tests/community_test.go | 4 ++-- tests/package_test.go | 6 +++--- tests/validation_test.go | 4 ++-- v1/api.go | 2 +- v1/community.go | 2 +- v1/package.go | 2 +- v1/user.go | 2 +- 15 files changed, 26 insertions(+), 20 deletions(-) diff --git a/common/package.go b/common/package.go index c5f37e2..0858571 100644 --- a/common/package.go +++ b/common/package.go @@ -1,6 +1,6 @@ package common -import "thundergo/util" +import "github.com/The-Egg-Corp/ThunderGo/util" type BasePackageMetadata struct { Name string `json:"name"` diff --git a/experimental/api.go b/experimental/api.go index c4773ce..8f04701 100644 --- a/experimental/api.go +++ b/experimental/api.go @@ -3,7 +3,7 @@ package experimental import ( "encoding/base64" "fmt" - "thundergo/util" + "github.com/The-Egg-Corp/ThunderGo/util" "github.com/samber/lo" ) diff --git a/experimental/community.go b/experimental/community.go index d57c381..4ad8672 100644 --- a/experimental/community.go +++ b/experimental/community.go @@ -2,8 +2,8 @@ package experimental import ( "fmt" - "thundergo/common" - "thundergo/util" + "github.com/The-Egg-Corp/ThunderGo/common" + "github.com/The-Egg-Corp/ThunderGo/util" ) type Category = common.PackageCategory diff --git a/experimental/package.go b/experimental/package.go index 814000b..b989802 100644 --- a/experimental/package.go +++ b/experimental/package.go @@ -2,8 +2,8 @@ package experimental import ( "fmt" - "thundergo/common" - "thundergo/util" + "github.com/The-Egg-Corp/ThunderGo/common" + "github.com/The-Egg-Corp/ThunderGo/util" ) type Package struct { diff --git a/experimental/validation.go b/experimental/validation.go index 6ea8b5a..2024219 100644 --- a/experimental/validation.go +++ b/experimental/validation.go @@ -1,7 +1,7 @@ package experimental import ( - "thundergo/util" + "github.com/The-Egg-Corp/ThunderGo/util" ) type ValidatorResponse struct { diff --git a/experimental/wiki.go b/experimental/wiki.go index 9776a20..8eb884f 100644 --- a/experimental/wiki.go +++ b/experimental/wiki.go @@ -1,7 +1,7 @@ package experimental import ( - "thundergo/util" + "github.com/The-Egg-Corp/ThunderGo/util" ) type WikiList struct { diff --git a/go.mod b/go.mod index 2259f1e..cdb1f94 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,7 @@ -module thundergo +module github.com/The-Egg-Corp/ThunderGo + +replace github.com/The-Egg-Corp/ThunderGo => ./ +//replace thundergo => ./ go 1.22.1 diff --git a/go.sum b/go.sum index 2661fc3..9e07e46 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,12 @@ +github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b h1:XxMZvQZtTXpWMNWK82vdjCLCe7uGMFXdTsJH0v3Hkvw= github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0 h1:GD+A8+e+wFkqje55/2fOVnZPkoDIu1VooBWfNrnY8Uo= github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/samber/lo v1.39.0 h1:4gTz1wUhNYLhFSKl6O+8peW0v2F4BCY034GRpU9WnuA= github.com/samber/lo v1.39.0/go.mod h1:+m/ZKRl6ClXCE2Lgf3MsQlWfh4bn1bz6CXEOxnEXnEA= github.com/sanity-io/litter v1.5.5 h1:iE+sBxPBzoK6uaEP5Lt3fHNgpKcHXc/A2HGETy0uJQo= github.com/sanity-io/litter v1.5.5/go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U= +github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312 h1:UsFdQ3ZmlzS0BqZYGxvYaXvFGUbCmPGy8DM7qWJJiIQ= github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 h1:3MTrJm4PyNL9NBqvYDSj3DHl46qQakyfqfWo4jgfaEM= golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE= diff --git a/tests/community_test.go b/tests/community_test.go index 37f75cf..9821480 100644 --- a/tests/community_test.go +++ b/tests/community_test.go @@ -2,9 +2,9 @@ package tests import ( "fmt" + TSGO "github.com/The-Egg-Corp/ThunderGo/experimental" + "github.com/The-Egg-Corp/ThunderGo/util" "testing" - TSGO "thundergo/experimental" - "thundergo/util" ) func TestCommunity(t *testing.T) { diff --git a/tests/package_test.go b/tests/package_test.go index 4787aeb..a282c8e 100644 --- a/tests/package_test.go +++ b/tests/package_test.go @@ -2,10 +2,10 @@ package tests import ( "fmt" + TSGOExp "github.com/The-Egg-Corp/ThunderGo/experimental" + "github.com/The-Egg-Corp/ThunderGo/util" + TSGOV1 "github.com/The-Egg-Corp/ThunderGo/v1" "testing" - TSGOExp "thundergo/experimental" - "thundergo/util" - TSGOV1 "thundergo/v1" ) // region Experimental Tests diff --git a/tests/validation_test.go b/tests/validation_test.go index befdfa5..5fe7ac9 100644 --- a/tests/validation_test.go +++ b/tests/validation_test.go @@ -2,10 +2,10 @@ package tests import ( "fmt" + TSGO "github.com/The-Egg-Corp/ThunderGo/experimental" + "github.com/The-Egg-Corp/ThunderGo/util" "os" "testing" - TSGO "thundergo/experimental" - "thundergo/util" ) // Seems to need Authentication diff --git a/v1/api.go b/v1/api.go index a3ccaaf..51a52f7 100644 --- a/v1/api.go +++ b/v1/api.go @@ -1,7 +1,7 @@ package v1 import ( - "thundergo/util" + "github.com/The-Egg-Corp/ThunderGo/util" ) func GetAllPackages() (PackageList, error) { diff --git a/v1/community.go b/v1/community.go index 12d3f32..0427856 100644 --- a/v1/community.go +++ b/v1/community.go @@ -2,7 +2,7 @@ package v1 import ( "fmt" - "thundergo/util" + "github.com/The-Egg-Corp/ThunderGo/util" ) type Community struct { diff --git a/v1/package.go b/v1/package.go index d64a6d1..181c4f7 100644 --- a/v1/package.go +++ b/v1/package.go @@ -2,8 +2,8 @@ package v1 import ( //"fmt" + "github.com/The-Egg-Corp/ThunderGo/util" "strings" - "thundergo/util" "github.com/samber/lo" ) diff --git a/v1/user.go b/v1/user.go index fa6f3d9..ee77e4d 100644 --- a/v1/user.go +++ b/v1/user.go @@ -1,6 +1,6 @@ package v1 -import "thundergo/util" +import "github.com/The-Egg-Corp/ThunderGo/util" type UserMedia struct { UUID string `json:"uuid"`