file

package
v0.0.0-...-2cea6d0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct{}

func New

func New() File

func (File) Save

func (f File) Save(fileName string, r io.Reader) (string, error)

func (File) Unzip

func (f File) Unzip(dest string, r io.ReaderAt, size int64) error

easy way to unzip file with golang https://stackoverflow.com/a/24792688/12976234

func (File) ZipSource

func (f File) ZipSource(source string, w io.Writer) error

Ref: Zip a file in Go https://gosamples.dev/zip-file

Jump to

Keyboard shortcuts

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