build
tests
.build.yml
.gitignore
activity_test.go
activity.go
actor_test.go
actor.go
collection_page_test.go
collection_page.go
collection_test.go
collection.go
decoding_json_test.go
decoding_json.go
encoding_json_test.go
encoding_json.go
extractors_test.go
extractors.go
go.mod
intransitive_activity_test.go
intransitive_activity.go
iri_test.go
iri.go
item_collection_test.go
item_collection.go
item_test.go
item.go
langref_test.go
langref.go
languages.go
LICENSE
link_test.go
link.go
Makefile
natural_language_values_test.go
natural_language_values.go
object_id_test.go
object_id.go
object_test.go
object.go
ordered_collection_page_test.go
ordered_collection_page.go
ordered_collection_test.go
ordered_collection.go
place_test.go
place.go
profile_test.go
profile.go
question_test.go
question.go
README.md
relationship_test.go
relationship.go
setup_test.go
tombstone_test.go
tombstone.go
typer_test.go
typer.go
types_test.go
types.go
About GoActivityPub: Vocabulary
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
Usage
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.