summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/text/internal/format/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/text/internal/format/format.go')
-rw-r--r--vendor/golang.org/x/text/internal/format/format.go24
1 files changed, 11 insertions, 13 deletions
diff --git a/vendor/golang.org/x/text/internal/format/format.go b/vendor/golang.org/x/text/internal/format/format.go
index c70bc0fe2..ee1c57a3c 100644
--- a/vendor/golang.org/x/text/internal/format/format.go
+++ b/vendor/golang.org/x/text/internal/format/format.go
@@ -24,20 +24,18 @@ type State interface {
// Language reports the requested language in which to render a message.
Language() language.Tag
+ // TODO: consider this and removing rune from the Format method in the
+ // Formatter interface.
+ //
+ // Verb returns the format variant to render, analogous to the types used
+ // in fmt. Use 'v' for the default or only variant.
+ // Verb() rune
+
// TODO: more info:
- // - sentence context
- // - user preferences, like measurement systems
- // - options
+ // - sentence context such as linguistic features passed by the translator.
}
-// A Statement is a Var or an Expression.
-type Statement interface {
- statement()
+// Formatter is analogous to fmt.Formatter.
+type Formatter interface {
+ Format(state State, verb rune)
}
-
-// A String a literal string format.
-type String string
-
-func (String) statement() {}
-
-// TODO: Select, Var, Case, StatementSequence