c8e9a9ffc9
./astool/astool -spec astool/activitystreams.jsonld \ -spec astool/security-v1.jsonld ./streams
13 行
422 B
Go
13 行
422 B
Go
package streams
|
|
|
|
import (
|
|
typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey"
|
|
vocab "github.com/go-fed/activity/streams/vocab"
|
|
)
|
|
|
|
// IsOrExtendsW3IDSecurityV1PublicKey returns true if the other provided type is
|
|
// the PublicKey type or extends from the PublicKey type.
|
|
func IsOrExtendsW3IDSecurityV1PublicKey(other vocab.Type) bool {
|
|
return typepublickey.IsOrExtendsPublicKey(other)
|
|
}
|