Add a build package (#1926)
* Add a build package * fix go mod * package tar
This commit is contained in:
15
build/options.go
Normal file
15
build/options.go
Normal 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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user