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

     1  package fast
     2  
     3  type StringEncoder interface {
     4  	EncodeString(b *StringBuffer)
     5  }
     6  
     7  // Write a type that implements StringEncoder
     8  func (b *StringBuffer) WriteEnc(v StringEncoder) {
     9  	v.EncodeString(b)
    10  }