From 278b520955b120bc9e6709eb2b5e0cfc093cc4e2 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Thu, 1 Aug 2024 15:15:34 -0700 Subject: [PATCH] "sourcecode.social/reiver/go-mstdn" -> "github.com/reiver/go-mstdn" --- README.md | 12 ++++++------ api/v1/accounts/account_id/handler.go | 4 ++-- api/v1/accounts/account_id/loader.go | 4 ++-- api/v1/accounts/lookup/handler.go | 4 ++-- api/v1/accounts/lookup/loader.go | 4 ++-- ent/account_marshaljson_test.go | 2 +- ent/admn/account.go | 2 +- ent/admn/account_marshaljson_test.go | 4 ++-- ent/admn/dimensiondata_marshaljson_test.go | 2 +- ent/application_marshaljson_test.go | 2 +- ent/field_marshaljson_test.go | 2 +- ent/field_unmarshaljson_test.go | 2 +- ent/report_marshaljson_test.go | 2 +- ent/role_unmarshaljson_test.go | 2 +- go.mod | 2 +- 15 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index a75d5ad..903b2bb 100644 --- a/README.md +++ b/README.md @@ -5,32 +5,32 @@ Note that the **Mastodon API** is not (yet) officially part of **ActivityPub**. ## Documention -Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-mstdn +Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-mstdn -[![GoDoc](https://godoc.org/sourcecode.social/reiver/go-mstdn?status.svg)](https://godoc.org/sourcecode.social/reiver/go-mstdn) +[![GoDoc](https://godoc.org/github.com/reiver/go-mstdn?status.svg)](https://godoc.org/github.com/reiver/go-mstdn) ## Import To import package **mstdn** use `import` code like the follownig: ``` -import "sourcecode.social/reiver/go-mstdn" +import "github.com/reiver/go-mstdn" ``` To import the Mastodon API **entities** use `import` code like the following: ``` -import "sourcecode.social/reiver/go-mstdn/ent" +import "github.com/reiver/go-mstdn/ent" ``` To import the Mastodon API **entities** for **administrators** use `import` code like the following: ``` -import "sourcecode.social/reiver/go-mstdn/ent/admn" +import "github.com/reiver/go-mstdn/ent/admn" ``` ## Installation To install package **mstdn** do the following: ``` -GOPROXY=direct go get https://sourcecode.social/reiver/go-mstdn +GOPROXY=direct go get https://github.com/reiver/go-mstdn ``` ## Author diff --git a/api/v1/accounts/account_id/handler.go b/api/v1/accounts/account_id/handler.go index f77e348..46623f1 100644 --- a/api/v1/accounts/account_id/handler.go +++ b/api/v1/accounts/account_id/handler.go @@ -5,8 +5,8 @@ import ( "sourcecode.social/reiver/go-pathmatch" - "sourcecode.social/reiver/go-mstdn" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn" + "github.com/reiver/go-mstdn/ent" ) var _ http.Handler = internalHandler{} diff --git a/api/v1/accounts/account_id/loader.go b/api/v1/accounts/account_id/loader.go index 4d3f8eb..712c46a 100644 --- a/api/v1/accounts/account_id/loader.go +++ b/api/v1/accounts/account_id/loader.go @@ -1,8 +1,8 @@ package account_id import ( - "sourcecode.social/reiver/go-mstdn/api/v1" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/api/v1" + "github.com/reiver/go-mstdn/ent" ) type LoaderFunc func(account *ent.Account, accountid string) v1.Error diff --git a/api/v1/accounts/lookup/handler.go b/api/v1/accounts/lookup/handler.go index 99dc3f2..34d8d7d 100644 --- a/api/v1/accounts/lookup/handler.go +++ b/api/v1/accounts/lookup/handler.go @@ -3,8 +3,8 @@ package lookup import ( "net/http" - "sourcecode.social/reiver/go-mstdn" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn" + "github.com/reiver/go-mstdn/ent" ) var _ http.Handler = internalHandler{} diff --git a/api/v1/accounts/lookup/loader.go b/api/v1/accounts/lookup/loader.go index 732ae4d..ed2267f 100644 --- a/api/v1/accounts/lookup/loader.go +++ b/api/v1/accounts/lookup/loader.go @@ -1,8 +1,8 @@ package lookup import ( - "sourcecode.social/reiver/go-mstdn/api/v1" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/api/v1" + "github.com/reiver/go-mstdn/ent" ) type LoaderFunc func(account *ent.Account, acct string) v1.Error diff --git a/ent/account_marshaljson_test.go b/ent/account_marshaljson_test.go index f437671..2ac5af5 100644 --- a/ent/account_marshaljson_test.go +++ b/ent/account_marshaljson_test.go @@ -9,7 +9,7 @@ import ( "sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-opt" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/ent" ) func TestAccount_MarshalJSON(t *testing.T) { diff --git a/ent/admn/account.go b/ent/admn/account.go index 6e8ce8e..3bd45bd 100644 --- a/ent/admn/account.go +++ b/ent/admn/account.go @@ -7,7 +7,7 @@ import ( "sourcecode.social/reiver/go-opt" "sourcecode.social/reiver/go-nul" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/ent" ) var _ json.Marshaler = Account{} diff --git a/ent/admn/account_marshaljson_test.go b/ent/admn/account_marshaljson_test.go index f047148..d2973ce 100644 --- a/ent/admn/account_marshaljson_test.go +++ b/ent/admn/account_marshaljson_test.go @@ -9,8 +9,8 @@ import ( "sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-opt" - "sourcecode.social/reiver/go-mstdn/ent" - "sourcecode.social/reiver/go-mstdn/ent/admn" + "github.com/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/ent/admn" ) func TestAdmin_MarshalJSON(t *testing.T) { diff --git a/ent/admn/dimensiondata_marshaljson_test.go b/ent/admn/dimensiondata_marshaljson_test.go index 0a67245..b28770c 100644 --- a/ent/admn/dimensiondata_marshaljson_test.go +++ b/ent/admn/dimensiondata_marshaljson_test.go @@ -7,7 +7,7 @@ import ( "sourcecode.social/reiver/go-opt" - "sourcecode.social/reiver/go-mstdn/ent/admn" + "github.com/reiver/go-mstdn/ent/admn" ) func TestDimensionData_MarshalJSON(t *testing.T) { diff --git a/ent/application_marshaljson_test.go b/ent/application_marshaljson_test.go index a26f7a3..cff783a 100644 --- a/ent/application_marshaljson_test.go +++ b/ent/application_marshaljson_test.go @@ -9,7 +9,7 @@ import ( "sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-opt" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/ent" ) func TestApplication_MarshalJSON(t *testing.T) { diff --git a/ent/field_marshaljson_test.go b/ent/field_marshaljson_test.go index 90ad094..9ead717 100644 --- a/ent/field_marshaljson_test.go +++ b/ent/field_marshaljson_test.go @@ -6,7 +6,7 @@ import ( "bytes" "encoding/json" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/ent" ) func TestField_MarshalJSON(t *testing.T) { diff --git a/ent/field_unmarshaljson_test.go b/ent/field_unmarshaljson_test.go index d1ca6e9..dd02169 100644 --- a/ent/field_unmarshaljson_test.go +++ b/ent/field_unmarshaljson_test.go @@ -5,7 +5,7 @@ import ( "encoding/json" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/ent" ) func TestField_UnmarshalJSON(t *testing.T) { diff --git a/ent/report_marshaljson_test.go b/ent/report_marshaljson_test.go index b7fea44..bd55c5b 100644 --- a/ent/report_marshaljson_test.go +++ b/ent/report_marshaljson_test.go @@ -11,7 +11,7 @@ import ( "sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-opt" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/ent" ) func TestReport_MarshalJSON(t *testing.T) { diff --git a/ent/role_unmarshaljson_test.go b/ent/role_unmarshaljson_test.go index f4bf53f..a01c00b 100644 --- a/ent/role_unmarshaljson_test.go +++ b/ent/role_unmarshaljson_test.go @@ -8,7 +8,7 @@ import ( "sourcecode.social/reiver/go-jsonint" "sourcecode.social/reiver/go-opt" - "sourcecode.social/reiver/go-mstdn/ent" + "github.com/reiver/go-mstdn/ent" ) func TestRole_MarshalJSON(t *testing.T) { diff --git a/go.mod b/go.mod index 0272556..65dadb0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module sourcecode.social/reiver/go-mstdn +module github.com/reiver/go-mstdn go 1.20