Support a simplified kong.Groups{<key>: <title>} way of specifiying groups.

See #135.
This commit is contained in:
Alec Thomas
2021-02-09 15:08:22 +11:00
parent b68e1aba63
commit 7e27c8ecf5
5 changed files with 47 additions and 26 deletions
+2 -2
View File
@@ -412,9 +412,9 @@ type Group struct {
Key string
// Title is displayed above the grouped items.
Title string
// Header is optional and displayed under the Title when non empty.
// Description is optional and displayed under the Title when non empty.
// It can be used to introduce the group's purpose to the user.
Header string
Description string
}
// This is directly from the Go 1.13 source code.