Documentation ¶
Overview ¶
Package packer provides extracting archive related syntactic sugar.
* Extract tar.gz content
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() resp := client.MustGetWithContext(ctx, "https://domain.tld") defer resp.Body.Close() packer.Untar(resp.Body, "/path/to/extract")
* Extract zip content
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() resp := client.MustGetWithContext(ctx, "https://domain.tld") defer resp.Body.Close() packer.Unzip(resp.Body, "/path/to/extract")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.