summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/text/internal/format/format.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-09-29 12:46:30 -0700
committerGitHub <noreply@github.com>2017-09-29 12:46:30 -0700
commitb84736e9b6401df0c6eeab9950bef09458a6aefd (patch)
treed9175208de3236db75a33879750a57b3000ba096 /vendor/golang.org/x/text/internal/format/format.go
parent8b9dbb86133ff0fd6002a391268383d1593918ca (diff)
downloadchat-b84736e9b6401df0c6eeab9950bef09458a6aefd.tar.gz
chat-b84736e9b6401df0c6eeab9950bef09458a6aefd.tar.bz2
chat-b84736e9b6401df0c6eeab9950bef09458a6aefd.zip
Updating server dependancies. (#7538)
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