Functional Configuration

Set underlying values via a collection of functions passed to the constructor. These functions should satisfy a type signature, so that the constructor can use a variadic parameter to collect all input.

type Option func(*Object) error
func Noop() Option {
    return func(*Object) error {
       return nil   
    }
}

New configuration options may be added as they become necessary.

Last updated