github.com/webmafia/fast@v0.10.0/string_buffer_bool.go (about)

     1  package fast
     2  
     3  func (b *StringBuffer) WriteBool(v bool) {
     4  	if v {
     5  		b.buf = append(b.buf, "true"...)
     6  	} else {
     7  		b.buf = append(b.buf, "false"...)
     8  	}
     9  }