activity/tools
Cory Slep c4425ee50e experimental: Keep single-type special-case API
After deliberating on the APIs for properties that can have a single
type vs multiple types, I've decided to keep the distinctly separate
APIs for the single-type properties. This means humans reading the APIs
will use simpler and more reasonable getters/setters, etc. However, by
default the two kinds of properties will not be able to satisfy the same
interface.

If this is needed, in the future we can auto-generate thin-wrapper types
around single-type properties that cause them to have a shared API with
the multi-type properties. But that won't be tackled for now, as its
expected use case is small.
2018-10-16 22:08:10 +02:00
..
defs Add the missing 'shares' property to vocab.Object 2018-08-21 18:59:18 +02:00
exp experimental: Keep single-type special-case API 2018-10-16 22:08:10 +02:00
streams
vocab Add multiply-typed unknown property methods to vocab interfaces. 2018-08-21 22:26:13 +02:00
README.md

README.md

tools

Contains the code-generation logic for aspects of this library:

  • go-fed/activity/tools/defs contains common utilities and definitions for the Vocabulary.
  • go-fed/activity/tools/vocab is the tool used to generate the Vocabulary code.
  • go-fed/activity/tools/vocab/gen is the library that does the heavy lifting of generating the Vocabulary code.
  • go-fed/activity/tools/stream is the tool used to generate the ActivityStream convenience code.
  • go-fed/activity/toolsstream/gen is the library that does the heavy lifting of generating the ActivityStream convenience code.

Before you continue further; a fair warning. This code is in severe need of tender love and care.