micro/runtime/package/options.go

16 lines
223 B
Go
Raw Normal View History

2019-05-31 00:26:34 +01:00
package packager
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
}
}