attic-labs / noms

The versioned, forkable, syncable database
Apache License 2.0
7.45k stars 267 forks source link

a registry for encoding/decoding and handle pointer logic in structs #3783

Closed tobowers closed 6 years ago

tobowers commented 6 years ago

This isn't really intended to be a complete PR (it's missing tests). I just wanted to have the discussion before doing any unnecessary work.

This adds a registry for encode/decode. It also supports nested structs that use pointers to refer to each other, for example:

type MySubType struct {
  MyField string
}

type MyType struct {
  MySubtype *MySubType
  AnotherField string
}
atticlabs-ci commented 6 years ago

Build triggered. sha1 is original commit.

atticlabs-ci commented 6 years ago

Build started sha1 is original commit.

atticlabs-ci commented 6 years ago

Build finished.