github.com/Benchkram/bob@v0.0.0-20220321080157-7c8f3876e225/pkg/buildinfostore/options.go (about)

     1  package buildinfostore
     2  
     3  type Option func(s *s)
     4  
     5  func WithDir(dir string) Option {
     6  	return func(s *s) {
     7  		s.dir = dir
     8  	}
     9  }