twink/vendor/sourcery.dny.nu/pana/page.go

25 lines
473 B
Go
Raw Normal View History

2025-12-05 12:20:05 +01:00
package pana
import (
ld "sourcery.dny.nu/longdistance"
as "sourcery.dny.nu/pana/vocab/w3/activitystreams"
)
// Page is the ActivityStreams Page type.
type Page Object
// NewPage initialises a new Page.
func NewPage() *Page {
return &Page{
Properties: make(ld.Properties),
Type: []string{as.TypePage},
}
}
// Build finalises the Page.
//
// This returns [Any] since that's what [Activity.SetObject] expects.
func (p *Page) Build() Any {
return Any(*p)
}