From b84736e9b6401df0c6eeab9950bef09458a6aefd Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 29 Sep 2017 12:46:30 -0700 Subject: Updating server dependancies. (#7538) --- vendor/golang.org/x/text/internal/format/format.go | 24 ++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'vendor/golang.org/x/text/internal/format') 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 -- cgit v1.2.3-1-g7c22