go/printer.Config.Indent (field)
4 uses
go/printer (current package)
printer.go#L222: n := p.Config.Indent + p.indent // include base indentation
printer.go#L1301: Indent int // default: 0 (all code is indented at least by this much)
go/format
internal.go#L146: cfg.Indent = indent + indentAdj
internal.go#L152: out := sourceAdj(buf.Bytes(), cfg.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. |