2019-11-19 19:09:43 +03:00
|
|
|
package build
|
2019-05-31 02:26:34 +03:00
|
|
|
|
2020-11-03 01:08:23 +03:00
|
|
|
// Options struct
|
2019-05-31 02:26:34 +03:00
|
|
|
type Options struct {
|
|
|
|
// local path to download source
|
|
|
|
Path string
|
|
|
|
}
|
|
|
|
|
2020-11-03 01:08:23 +03:00
|
|
|
// Option func
|
2019-05-31 02:26:34 +03:00
|
|
|
type Option func(o *Options)
|
|
|
|
|
2020-11-03 01:08:23 +03:00
|
|
|
// Path is the Local path for repository
|
2019-05-31 02:26:34 +03:00
|
|
|
func Path(p string) Option {
|
|
|
|
return func(o *Options) {
|
|
|
|
o.Path = p
|
|
|
|
}
|
|
|
|
}
|