0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-22 00:30:40 +00:00

Describe some public struct and func

This commit is contained in:
Jacob McCann 2018-07-31 13:35:04 -05:00
parent ee00b3d8ab
commit 779aa5abaa
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ type (
VarFiles []string VarFiles []string
} }
// Netrc is credentials for cloning
Netrc struct { Netrc struct {
Machine string Machine string
Login string Login string

View File

@ -53,6 +53,7 @@ func downloadFile(filepath string, url string) error {
return nil return nil
} }
// Unzip a file to a destination
func Unzip(src, dest string) error { func Unzip(src, dest string) error {
r, err := zip.OpenReader(src) r, err := zip.OpenReader(src)
if err != nil { if err != nil {