Documentation ¶
Overview ¶
main executes the "genpartial" program which loads up a go package and recursively generates a "partial" variant of an specified struct.
If you've ever worked with the AWS SDK, you've worked with "partial" structs before. They are any struct where every field is nullable and the json tag specifies "omitempty".
genpartial allows us to write structs in ergonomic go where fields that must always exist are presented as values rather than pointers. In cases we were need to marshal a partial value back to json or only specify a subset of values (IE helm values), use the generated partial.
Click to show internal directories.
Click to hide internal directories.