Documentation ¶
Index ¶
Constants ¶
View Source
const ( DisplayVerb = '\U0001f5a5' DebugVerb = '\U0001f41e' DisplayString = "%\U0001f5a5" DebugString = "%\U0001f41e" PrettyFlag = '#' DisplayPrettyString = "%#\U0001f5a5" DebugPrettyString = "%#\U0001f41e" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DebugList ¶
type DebugList struct {
// contains filtered or unexported fields
}
func NewDebugList ¶
func (DebugList) SupportsCustomVerb ¶
SupportRustFormat implements Formatter.
type DebugMap ¶
type DebugMap[K indexmap.HashEqualer, V any] struct { // contains filtered or unexported fields }
func NewDebugMap ¶
func (*DebugMap[K, V]) SupportsCustomVerb ¶
SupportRustFormat implements Formatter.
type DebugStruct ¶
type DebugStruct struct {
// contains filtered or unexported fields
}
func NewDebugStruct ¶
func NewDebugStruct(name string) *DebugStruct
func (*DebugStruct) Field ¶
func (s *DebugStruct) Field(name string, value any) *DebugStruct
func (DebugStruct) SupportsCustomVerb ¶
func (DebugStruct) SupportsCustomVerb(verb rune) bool
SupportRustFormat implements Formatter.
type Formatter ¶
RustFormatter is a marker interface to indicate a type supports FmtDisplayVerb and FmtDebugVerb in fmt.Formatter.
type PadAdapter ¶
type PadAdapter struct {
// contains filtered or unexported fields
}
func NewPadAdapter ¶
func NewPadAdapter(w io.Writer, onNewline bool) *PadAdapter
type PadFormatAdapter ¶
type PadFormatAdapter struct {
// contains filtered or unexported fields
}
func NewPadFormatAdapter ¶
func NewPadFormatAdapter(f fmt.State, onNewline bool) *PadFormatAdapter
func (*PadFormatAdapter) Flag ¶
func (a *PadFormatAdapter) Flag(c int) bool
Flag implements fmt.State.
func (*PadFormatAdapter) Precision ¶
func (a *PadFormatAdapter) Precision() (prec int, ok bool)
Precision implements fmt.State.
func (*PadFormatAdapter) Width ¶
func (a *PadFormatAdapter) Width() (wid int, ok bool)
Width implements fmt.State.
Click to show internal directories.
Click to hide internal directories.