const ldigits … const udigits … const signed … const unsigned … type fmtFlags … type fmt … func (f *fmt) clearflags() { … } func (f *fmt) init(buf *buffer) { … } // writePadding generates n bytes of padding. func (f *fmt) writePadding(n int) { … } // pad appends b to f.buf, padded on left (!f.minus) or right (f.minus). func (f *fmt) pad(b []byte) { … } // padString appends s to f.buf, padded on left (!f.minus) or right (f.minus). func (f *fmt) padString(s string) { … } // fmtBoolean formats a boolean. func (f *fmt) fmtBoolean(v bool) { … } // fmtUnicode formats a uint64 as "U+0078" or with f.sharp set as "U+0078 'x'". func (f *fmt) fmtUnicode(u uint64) { … } // fmtInteger formats signed and unsigned integers. func (f *fmt) fmtInteger(u uint64, base int, isSigned bool, verb rune, digits string) { … } // truncateString truncates the string s to the specified precision, if present. func (f *fmt) truncateString(s string) string { … } // truncate truncates the byte slice b as a string of the specified precision, if present. func (f *fmt) truncate(b []byte) []byte { … } // fmtS formats a string. func (f *fmt) fmtS(s string) { … } // fmtBs formats the byte slice b as if it was formatted as string with fmtS. func (f *fmt) fmtBs(b []byte) { … } // fmtSbx formats a string or byte slice as a hexadecimal encoding of its bytes. func (f *fmt) fmtSbx(s string, b []byte, digits string) { … } // fmtSx formats a string as a hexadecimal encoding of its bytes. func (f *fmt) fmtSx(s, digits string) { … } // fmtBx formats a byte slice as a hexadecimal encoding of its bytes. func (f *fmt) fmtBx(b []byte, digits string) { … } // fmtQ formats a string as a double-quoted, escaped Go string constant. // If f.sharp is set a raw (backquoted) string may be returned instead // if the string does not contain any control characters other than tab. func (f *fmt) fmtQ(s string) { … } // fmtC formats an integer as a Unicode character. // If the character is not valid Unicode, it will print '\ufffd'. func (f *fmt) fmtC(c uint64) { … } // fmtQc formats an integer as a single-quoted, escaped Go character constant. // If the character is not valid Unicode, it will print '\ufffd'. func (f *fmt) fmtQc(c uint64) { … } // fmtFloat formats a float64. It assumes that verb is a valid format specifier // for strconv.AppendFloat and therefore fits into a byte. func (f *fmt) fmtFloat(v float64, size int, verb rune, prec int) { … }