GoAT Site is library that implements Standard.site in Go.
atprotocol standard-site atproto library
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs(info): extend lexicon

+14
+14
README.md
··· 94 94 // the future call to site.MarshalToMap on *Content 95 95 // will return map[string]any{"foo":"bar"}. 96 96 ``` 97 + 98 + ## Extending lexicons 99 + 100 + Lexicons defined by Standard.site [can be extended](https://standard.site/docs/introduction/#design-philosophy). 101 + 102 + To extend a lexicon, you can create a new type and embed the base lexicon: 103 + ```go 104 + type CustomPublication struct { 105 + site.Publication 106 + // your custom fields 107 + } 108 + ``` 109 + 110 + You can call any functions with this new lexicon: the embedded base lexicon already implements the `Record` interface!