go-ap / activitypub Goto Github PK
View Code? Open in Web Editor NEWActivityPub vocabulary for Go
License: MIT License
ActivityPub vocabulary for Go
License: MIT License
Since the ActivityStreams Id property of an Object is an xsd:anyURI
we should represent this in the code by making it an alias to the IRI
type instead of plain string
.
Link to the spec: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-id
Hi,
The code is not yet in a state to be used in any real life scenarios.
For now it's just a toy project, from a Go beginner, which tries to build a very basic API interface for the Activity Pub and Activity Streams specifications.
Incidentally, there's also a json-ld marshaling/unmarshaling API which tries to stay close to the json.Marshaler
and json.Unmarshaler
interfaces[1]. This might end up a bit too specific to be of use in other contexts.
If you are in need of something that sounds a lot like this, please leave comments, suggestions or, even better, feature and/or pull requests.
[1] The existing packages (as far as I could find them) do not follow the json.Marshal
documentation regarding anonymous struct fields and they end up messing the structure.
Overall improve the CollectionPage
and OrderedCollectionPage
structs and related functionality because it's unlikely to ever use the Collection
structs themselves in a real scenario, without attaching pagination to it.
See littr.go #10.
Hi, any statement about the current status of this project ?
Is there a documentation?
The readme appears to contain a mistake here, comparing regular OnTXXX
to [T]OnXXX
calls (respectively):
Before using them you should consider that the former comes with a pretty heavy performance penalty:
The benchmarks after this paragraph actually show it is the latter, generic [T]OnXXX
that carry a significant performance penalty.
I was considering using this library to encode some ActivityPub data I have on my website. However, I noticed that the Context
field gets serialised to context
and not @context
. Is that on purpose? If so, why? And how could I output it as @context
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.