genpartial

command
v0.0.0-...-66106be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL