20 lines
271 B
Go
Executable File
20 lines
271 B
Go
Executable File
package definition
|
|
|
|
import (
|
|
"gitoa.ru/go-4devs/config"
|
|
)
|
|
|
|
func New() Definition {
|
|
return Definition{
|
|
options: nil,
|
|
}
|
|
}
|
|
|
|
type Definition struct {
|
|
options []config.Option
|
|
}
|
|
|
|
func (d *Definition) Add(opts ...config.Option) {
|
|
d.options = append(d.options, opts...)
|
|
}
|