gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/runtime/build/options.go (about)

     1  package build
     2  
     3  type Options struct {
     4  	// local path to download source
     5  	Path string
     6  }
     7  
     8  type Option func(o *Options)
     9  
    10  // Local path for repository
    11  func Path(p string) Option {
    12  	return func(o *Options) {
    13  		o.Path = p
    14  	}
    15  }