add a boolean printer
SVN=124362
f.ud(^0).putnl(); // print string with automatic newline
*/
-import sys "sys"
+// import sys "sys"
export Fmt, New;
return i-1;
}
+// boolean
+func (f *Fmt) boolean(a bool) *Fmt {
+ if a {
+ f.pad("true");
+ } else {
+ f.pad("false");
+ }
+ f.clearflags();
+ return f;
+}
+
// integer; interprets prec but not wid.
func (f *Fmt) integer(a int64, base uint, is_signed bool, digits *string) string {
var buf [64]byte;