Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-04-24 13:26:51 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-04-25 12:12:30 +0300
commiteebde0c2ac4964e91d26d8b0cf0ac43afcfd207f (patch)
tree64535728c467d3e01f3b9b08d37576b89f669bf3 /common
parente4dc9a82b557a417b1552c533b0df605c6ff1cc0 (diff)
langs/i18n: Improve plural handling of floats
The go-i18n library expects plural counts with floats to be represented as strings. Fixes #8464
Diffstat (limited to 'common')
-rw-r--r--common/types/types.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/types/types.go b/common/types/types.go
index 04a27766e..4f9f02c8d 100644
--- a/common/types/types.go
+++ b/common/types/types.go
@@ -27,6 +27,12 @@ type RLocker interface {
RUnlock()
}
+// KeyValue is a interface{} tuple.
+type KeyValue struct {
+ Key interface{}
+ Value interface{}
+}
+
// KeyValueStr is a string tuple.
type KeyValueStr struct {
Key string