|
@@ -1,8 +1,9 @@
|
|
|
package template
|
|
package template
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
- "github.com/Masterminds/sprig/v3"
|
|
|
|
|
"strings"
|
|
"strings"
|
|
|
|
|
+
|
|
|
|
|
+ "github.com/Masterminds/sprig/v3"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
var templateFuncMap = map[string]any{
|
|
var templateFuncMap = map[string]any{
|
|
@@ -191,6 +192,8 @@ var specialPluralWordMap = map[string]string{
|
|
|
"Information": "Information",
|
|
"Information": "Information",
|
|
|
"info": "infos",
|
|
"info": "infos",
|
|
|
"Info": "Infos",
|
|
"Info": "Infos",
|
|
|
|
|
+ "staff": "staffs",
|
|
|
|
|
+ "Staff": "Staffs",
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func Plural(s string) string {
|
|
func Plural(s string) string {
|