Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State wraps the state into desired writer
func (*State) Precision ¶
Precision returns the value of the precision option and whether it has been set.
type StateFlusher ¶
type StateFlusher interface { // Write is the function to call to emit formatted output to be printed. Write(b []byte) (n int, err error) // Width returns the value of the width option and whether it has been set. Width() (wid int, ok bool) // Precision returns the value of the precision option and whether it has been set. Precision() (prec int, ok bool) // Flag reports whether the flag c, a character, has been set. Flag(c int) bool // Flush flushes the state Flush() error }
StateFlusher is a flushable state
Click to show internal directories.
Click to hide internal directories.