text: golang.org/x/text/internal/format Index | Files

package format

import "golang.org/x/text/internal/format"

Package format contains types for defining language-specific formatting of values.

This package is internal now, but will eventually be exposed after the API settles.

Index

Package Files

format.go

type Formatter Uses

type Formatter interface {
    Format(state State, verb rune)
}

Formatter is analogous to fmt.Formatter.

type State Uses

type State interface {
    fmt.State

    // Language reports the requested language in which to render a message.
    Language() language.Tag
}

State represents the printer state passed to custom formatters. It provides access to the fmt.State interface and the sentence and language-related context.

Package format imports 2 packages (graph) and is imported by 6 packages. Updated 2017-10-14. Refresh now. Tools for package owners.