diff --git a/unit/option.go b/unit/option.go index 9329b34f..e5d21e19 100644 --- a/unit/option.go +++ b/unit/option.go @@ -24,6 +24,10 @@ type UnitOption struct { Value string } +func NewUnitOption(section, name, value string) *UnitOption { + return &UnitOption{Section: section, Name: name, Value: value} +} + func (uo *UnitOption) String() string { return fmt.Sprintf("{Section: %q, Name: %q, Value: %q}", uo.Section, uo.Name, uo.Value) }