mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 13:20:39 +00:00
Describe some public struct and func
This commit is contained in:
parent
ee00b3d8ab
commit
779aa5abaa
@ -34,6 +34,7 @@ type (
|
||||
VarFiles []string
|
||||
}
|
||||
|
||||
// Netrc is credentials for cloning
|
||||
Netrc struct {
|
||||
Machine string
|
||||
Login string
|
||||
|
@ -53,6 +53,7 @@ func downloadFile(filepath string, url string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Unzip a file to a destination
|
||||
func Unzip(src, dest string) error {
|
||||
r, err := zip.OpenReader(src)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user