Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrintfSpecifier ¶
type PrintfSpecifier struct { Original string // The original specifier string Flags string // Flags: '-', '+', ' ', '#', and '0' Width string // Width: number or '*' Precision string // Precision: '.number' or '.*' Length string // Length modifier: 'h', 'hh', 'l', 'll', 'L', 'j', 'z', 't' Specifier string // Conversion specifier: 'd', 'i', 'o', 'u', 'x', 'X', 'f', 'F', 'e', 'E', 'g', 'G', 'a', 'A', 'c', 's', 'p', 'n', '%' }
PrintfSpecifier represents the components of a printf format specifier
func ParsePrintfFmt ¶
func ParsePrintfFmt(fmtStr string) ([]PrintfSpecifier, error)
ParsePrintfFmt parses a libc printf format string.
Click to show internal directories.
Click to hide internal directories.