Closed mwhittaker closed 12 months ago
This PR refactors the signature of the YAML generating functions to write to an io.Writer argument instead of returning a []byte. I also added a marshalResource helper function. These two changes help reduce the amount of boilerplate in the code.
io.Writer
[]byte
marshalResource
This PR refactors the signature of the YAML generating functions to write to an
io.Writer
argument instead of returning a[]byte
. I also added amarshalResource
helper function. These two changes help reduce the amount of boilerplate in the code.