ServiceWeaver / weaver-kube

Run Service Weaver applications on vanilla Kubernetes.
Apache License 2.0
61 stars 19 forks source link

Use io.Writer instead of returning []byte. #79

Closed mwhittaker closed 12 months ago

mwhittaker commented 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.