micro/build/options.go

18 lines
265 B
Go
Raw Normal View History

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