diff --git a/public/service/config.go b/public/service/config.go index 4a8456c3d..2d123f757 100644 --- a/public/service/config.go +++ b/public/service/config.go @@ -95,6 +95,15 @@ func NewStringListField(name string) *ConfigField { } } +// NewStringListMapField describes a new map type config field consisting of +// lists of strings. +func NewStringListMapField(name string) *ConfigField { + stringListField := NewStringListField(name) + return &ConfigField{ + field: stringListField.field.Map(), + } +} + // NewStringListOfListsField describes a new config field consisting of a list // of lists of strings (a 2D array of strings). func NewStringListOfListsField(name string) *ConfigField {