Documentation ¶
Overview ¶
Package fmtz provides utilities for working with formatted strings. It aims to extend the standard library fmt package with additional functionality.
Index ¶
- func FormatMsgArgs(msgAndArgs []any) string
- func FormatMsgArgsX(msgAndArgs []any) fmt.Formatter
- type MustState
- func (b MustState) Format(verb rune, value any)
- func (b MustState) FormatString(verb rune) string
- func (b MustState) Print(args ...any)
- func (b MustState) PrintBytes(p []byte)
- func (b MustState) Printf(format string, args ...any)
- func (b MustState) Println(args ...any)
- func (b MustState) WriteByte(c byte) error
- func (b MustState) WriteByteZ(c byte)
- func (b MustState) WriteRune(r rune) (int, error)
- func (b MustState) WriteRuneZ(r rune) int
- func (b MustState) WriteString(s string) (int, error)
- func (b MustState) WriteStringZ(s string) int
- func (b MustState) WriteZ(p []byte) int
- type State
- func (b State) Format(verb rune, value any)
- func (b State) FormatString(verb rune) string
- func (b State) Print(args ...any)
- func (b State) PrintBytes(p []byte)
- func (b State) Printf(format string, args ...any)
- func (b State) Println(args ...any)
- func (b State) WriteByte(c byte) error
- func (b State) WriteByteZ(c byte)
- func (b State) WriteRune(r rune) (int, error)
- func (b State) WriteRuneZ(r rune) int
- func (b State) WriteString(s string) (int, error)
- func (b State) WriteStringZ(s string) int
- func (b State) WriteZ(p []byte) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatMsgArgs ¶
func FormatMsgArgsX ¶
Types ¶
type MustState ¶
func WrapMustState ¶
func (MustState) FormatString ¶ added in v0.1.1
func (MustState) PrintBytes ¶
func (MustState) WriteByteZ ¶
func (MustState) WriteRuneZ ¶
func (MustState) WriteStringZ ¶
type State ¶
func (State) FormatString ¶ added in v0.1.1
func (State) PrintBytes ¶
func (State) WriteByteZ ¶
func (State) WriteRuneZ ¶
func (State) WriteStringZ ¶
Click to show internal directories.
Click to hide internal directories.