Add a build package (#1926)

* Add a build package

* fix go mod

* package tar
This commit is contained in:
Asim Aslam
2020-08-11 16:51:58 +01:00
committed by GitHub
parent e162e6d505
commit fae4151027
13 changed files with 298 additions and 74 deletions

15
build/options.go Normal file
View File

@@ -0,0 +1,15 @@
package build
type Options struct {
// local path to download source
Path string
}
type Option func(o *Options)
// Local path for repository
func Path(p string) Option {
return func(o *Options) {
o.Path = p
}
}