Changed Url to URL

This commit is contained in:
Marius Orcsik 2017-09-12 18:54:10 +02:00
parent baa209cfd0
commit 40cf589f8d
No known key found for this signature in database
GPG key ID: C36D1EBE93A6EEAE
2 changed files with 10 additions and 10 deletions

View file

@ -7,14 +7,14 @@ import (
type ObjectId string
const (
ActivityBaseURI Uri = Uri("https://www.w3.org/ns/activitystreams#")
ObjectType string = "Object"
LinkType string = "Link"
ActivityType string = "Activity"
ActivityBaseURI URI = URI("https://www.w3.org/ns/activitystreams#")
ObjectType string = "Object"
LinkType string = "Link"
ActivityType string = "Activity"
IntransitiveActivityType string = "IntransitiveActivity"
ActorType string = "Actor"
CollectionType string = "Collection"
OrderedCollectionType string = "OrderedCollection"
ActorType string = "Actor"
CollectionType string = "Collection"
OrderedCollectionType string = "OrderedCollection"
// Object Types
ArticleType string = "Article"
@ -172,7 +172,7 @@ type Link struct {
// Identifies an entity that provides a preview of this object.
Preview ObjectOrLink `jsonld:"preview,omitempty"`
// The target resource pointed to by a Link.
Href Uri `jsonld:"href,omitempty"`
Href URI `jsonld:"href,omitempty"`
// Hints as to the language used by the target resource.
// Value must be a [BCP47](https://tools.ietf.org/html/bcp47) Language-Tag.
HrefLang LangRef `jsonld:"hrefLang,omitempty"`

View file

@ -1,4 +1,4 @@
package activitypub
type Iri Uri
type Uri string
type Iri URI
type URI string