Derive visibility fixes (#271)

* use pub public const

* don't error on no summary

* move extract visibility to separate function

* extract visibility test

* add addressable interface
This commit is contained in:
tobi
2021-10-06 18:18:02 +02:00
committed by GitHub
parent ff77bf1d11
commit 3dc7644ae6
10 changed files with 262 additions and 103 deletions

View File

@@ -133,6 +133,12 @@ type Announceable interface {
WithCC
}
// Addressable represents the minimum interface for an addressed activity.
type Addressable interface {
WithTo
WithCC
}
// CollectionPageable represents the minimum interface for an activitystreams 'CollectionPage' object.
type CollectionPageable interface {
WithJSONLDId