github.com/MontFerret/ferret@v0.18.0/pkg/compiler/options.go (about)

     1  package compiler
     2  
     3  type (
     4  	Option  func(opts *Options)
     5  	Options struct {
     6  		noStdlib bool
     7  	}
     8  )
     9  
    10  func WithoutStdlib() Option {
    11  	return func(opts *Options) {
    12  		opts.noStdlib = true
    13  	}
    14  }