1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Package format contains types for defining language-specific formatting of
8 // This package is internal now, but will eventually be exposed after the API
10 package format // import "golang.org/x/text/internal/format"
15 "golang.org/x/text/language"
18 // State represents the printer state passed to custom formatters. It provides
19 // access to the fmt.State interface and the sentence and language-related
21 type State interface {
24 // Language reports the requested language in which to render a message.
25 Language() language.Tag
29 // - user preferences, like measurement systems
33 // A Statement is a Var or an Expression.
34 type Statement interface {
38 // A String a literal string format.
41 func (String) statement() {}
43 // TODO: Select, Var, Case, StatementSequence