"sourcecode.social/reiver/go-mstdn" -> "github.com/reiver/go-mstdn"

master
Charles Iliya Krempeaux 2024-08-01 15:15:34 -07:00
parent aed8b75aa2
commit 278b520955
15 changed files with 25 additions and 25 deletions

View File

@ -5,32 +5,32 @@ Note that the **Mastodon API** is not (yet) officially part of **ActivityPub**.
## Documention ## 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 ## Import
To import package **mstdn** use `import` code like the follownig: 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: 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: 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 ## Installation
To install package **mstdn** do the following: 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 ## Author

View File

@ -5,8 +5,8 @@ import (
"sourcecode.social/reiver/go-pathmatch" "sourcecode.social/reiver/go-pathmatch"
"sourcecode.social/reiver/go-mstdn" "github.com/reiver/go-mstdn"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
var _ http.Handler = internalHandler{} var _ http.Handler = internalHandler{}

View File

@ -1,8 +1,8 @@
package account_id package account_id
import ( import (
"sourcecode.social/reiver/go-mstdn/api/v1" "github.com/reiver/go-mstdn/api/v1"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
type LoaderFunc func(account *ent.Account, accountid string) v1.Error type LoaderFunc func(account *ent.Account, accountid string) v1.Error

View File

@ -3,8 +3,8 @@ package lookup
import ( import (
"net/http" "net/http"
"sourcecode.social/reiver/go-mstdn" "github.com/reiver/go-mstdn"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
var _ http.Handler = internalHandler{} var _ http.Handler = internalHandler{}

View File

@ -1,8 +1,8 @@
package lookup package lookup
import ( import (
"sourcecode.social/reiver/go-mstdn/api/v1" "github.com/reiver/go-mstdn/api/v1"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
type LoaderFunc func(account *ent.Account, acct string) v1.Error type LoaderFunc func(account *ent.Account, acct string) v1.Error

View File

@ -9,7 +9,7 @@ import (
"sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-nul"
"sourcecode.social/reiver/go-opt" "sourcecode.social/reiver/go-opt"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
func TestAccount_MarshalJSON(t *testing.T) { func TestAccount_MarshalJSON(t *testing.T) {

View File

@ -7,7 +7,7 @@ import (
"sourcecode.social/reiver/go-opt" "sourcecode.social/reiver/go-opt"
"sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-nul"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
var _ json.Marshaler = Account{} var _ json.Marshaler = Account{}

View File

@ -9,8 +9,8 @@ import (
"sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-nul"
"sourcecode.social/reiver/go-opt" "sourcecode.social/reiver/go-opt"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
"sourcecode.social/reiver/go-mstdn/ent/admn" "github.com/reiver/go-mstdn/ent/admn"
) )
func TestAdmin_MarshalJSON(t *testing.T) { func TestAdmin_MarshalJSON(t *testing.T) {

View File

@ -7,7 +7,7 @@ import (
"sourcecode.social/reiver/go-opt" "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) { func TestDimensionData_MarshalJSON(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
"sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-nul"
"sourcecode.social/reiver/go-opt" "sourcecode.social/reiver/go-opt"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
func TestApplication_MarshalJSON(t *testing.T) { func TestApplication_MarshalJSON(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
func TestField_MarshalJSON(t *testing.T) { func TestField_MarshalJSON(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
func TestField_UnmarshalJSON(t *testing.T) { func TestField_UnmarshalJSON(t *testing.T) {

View File

@ -11,7 +11,7 @@ import (
"sourcecode.social/reiver/go-nul" "sourcecode.social/reiver/go-nul"
"sourcecode.social/reiver/go-opt" "sourcecode.social/reiver/go-opt"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
func TestReport_MarshalJSON(t *testing.T) { func TestReport_MarshalJSON(t *testing.T) {

View File

@ -8,7 +8,7 @@ import (
"sourcecode.social/reiver/go-jsonint" "sourcecode.social/reiver/go-jsonint"
"sourcecode.social/reiver/go-opt" "sourcecode.social/reiver/go-opt"
"sourcecode.social/reiver/go-mstdn/ent" "github.com/reiver/go-mstdn/ent"
) )
func TestRole_MarshalJSON(t *testing.T) { func TestRole_MarshalJSON(t *testing.T) {

2
go.mod
View File

@ -1,4 +1,4 @@
module sourcecode.social/reiver/go-mstdn module github.com/reiver/go-mstdn
go 1.20 go 1.20