google.golang.org/protobuf/encoding/prototext.MarshalOptions.Indent (field)
7 uses
google.golang.org/protobuf/encoding/prototext (current package)
encode.go#L57: Indent string
encode.go#L114: if o.Multiline && o.Indent == "" {
encode.go#L115: o.Indent = defaultIndent
encode.go#L121: internalEnc, err := text.NewEncoder(o.Indent, delims, o.EmitASCII)
encode.go#L138: if len(o.Indent) > 0 && len(out) > 0 {
github.com/golang/protobuf/proto
buffer.go#L135: b, _ = prototext.MarshalOptions{AllowPartial: true, Indent: "\t"}.Marshal(m.Interface())
text_encode.go#L64: opts.Indent = " "
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |