Skip to content

v0.8.0: Fixes custom struct tags

Compare
Choose a tag to compare
@VojtechVitek VojtechVitek released this 25 Nov 14:53
· 81 commits to master since this release
413586e

Requires at least [email protected] (new array/sort/append template functions) ✅

This RIDL

message User
  - id: uint64
    + go.tag.db = id,omitempty
    + go.tag.cbor = id,omitempty

now correctly generates

 type User struct {
-  ID  uint64  `json:"id" db:"id,omitempty"`
+  ID  uint64  `json:"id" db:"id,omitempty" cbor:"id,omitempty"`
 }