Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions public/service/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down