The intro
folder contains examples.
cleanup
- about removing old and ownerless objectsdiscovery/
- about discovery serverpreview/
- about feed previewsend_receive/
- about source and destination, and how to decode values back to golang-valuesskybrief/
- briefly about skyobject
The types.go
file implements basic types for these
examples. And the file also implements registry of
these types.
In CXO SHA256 hash used instead of pointers and Merkle-tree
instead of slices. And all values should be encodable (e.g.
int
-> uint32
or any other).
And types below
type User struct {
Name string
Age int
}
type Feed struct {
Head string
Info string
Posts []*Post
}
type Post struct {
Head string
Body string
}
should be rewritten like in the types.go
and registered.