From 0d6ce80864520f61f50ffe094690c796b7a05dd4 Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Mon, 11 Sep 2017 23:16:09 +0200 Subject: [PATCH] Moved actor types constants to correct file --- actors.go | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/actors.go b/actors.go index 3ccf0dc..b837573 100644 --- a/actors.go +++ b/actors.go @@ -1,6 +1,21 @@ package activitypub -type ActorCollection = []Actor +const ( + // Actor Types + ApplicationType string = "Application" + GroupType string = "Group" + OrganizationType string = "Organization" + PersonType string = "Person" + ServiceType string = "Service" +) + +var validActorTypes = [...]string{ + ApplicationType, + GroupType, + OrganizationType, + PersonType, + ServiceType, +} type Actor struct { BaseObject @@ -30,14 +45,6 @@ type Actor struct { /**/ } -var validActorTypes = [...]string{ - ApplicationType, - GroupType, - OrganizationType, - PersonType, - ServiceType, -} - func ValidActorType(_type string) bool { for _, v := range validActorTypes { if v == _type {