Source File
enc_stream.go
Belonging Package
github.com/go-faster/jx
package jximportconst (encoderBufSize = 512minEncoderBufSize = 32)// NewStreamingEncoder creates new streaming encoder.func ( io.Writer, int) *Encoder {switch {case < 0:= encoderBufSizecase < minEncoderBufSize:= minEncoderBufSize}return &Encoder{w: Writer{Buf: make([]byte, 0, ),stream: newStreamState(),},}}// Close flushes underlying buffer to writer in streaming mode.// Otherwise, it does nothing.func ( *Encoder) () error {return .w.Close()}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |