This project is part of the GoActivityPub library which helps with creating ActivityPub applications using the Go programming language.
It contains data types for most of the Activity Vocabulary and the ActivityPub extension. They are documented accordingly with annotations from these specifications.
For more details you can have a look at the expanded documentation.
For discussions about the projects you can write to the discussions mailing list: ~mariusor/go-activitypub-discuss@lists.sr.ht
For patches and bug reports please use the dev mailing list: ~mariusor/go-activitypub-dev@lists.sr.ht
import vocab "github.com/go-ap/activitypub"
follow := vocab.Activity{
Type: vocab.FollowType,
Actor: vocab.IRI("https://example.com/alice"),
Object: vocab.IRI("https://example.com/janedoe"),
}There are more examples in the official documentation.