Changes
2 changed files (+15/-1)
-
-
@@ -1,6 +1,7 @@package activitypub import ( "fmt" "github.com/buger/jsonparser" "net/url" "path"
-
@@ -60,9 +61,14 @@ func (i IRI) MarshalJSON() ([]byte, error) {return b, nil } // AddPath concatenates el elements as a path to i func (i IRI) AddPath(el ...string) IRI { return IRI(fmt.Sprintf("%s/%s", i, path.Join(el...))) } // GetID func (i IRI) GetID() ID { return ID(i) return i } // GetType
-
-
-
@@ -306,3 +306,11 @@ func TestIRIs_MarshalJSON(t *testing.T) {t.Errorf("Invalid value after MarshalJSON: %s, expected %s", v, expected) } } func TestIRI_AddPath(t *testing.T) { t.Skip("TODO") } func TestIRI_ItemMatches(t *testing.T) { t.Skip("TODO") }
-