Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustWriteTarGz ¶
MustWriteTarGz writes the list of file names and content into a tarball. Paths are prefixed with "/".
Types ¶
type TarGzWriter ¶ added in v1.11.0
func NewTarGzWriter ¶ added in v1.11.0
func NewTarGzWriter(w io.Writer) *TarGzWriter
func (*TarGzWriter) Close ¶ added in v1.11.0
func (tgw *TarGzWriter) Close() error
func (*TarGzWriter) WriteFile ¶ added in v1.11.0
func (tgw *TarGzWriter) WriteFile(path string, bs []byte) (err error)
func (*TarGzWriter) WriteJSONFile ¶ added in v1.11.0
func (tgw *TarGzWriter) WriteJSONFile(path string, v any) error
Click to show internal directories.
Click to hide internal directories.