go/printer.printer.indent (field)
14 uses
go/printer (current package)
printer.go#L59: indent int // current indentation
printer.go#L222: n := p.Config.Indent + p.indent // include base indentation
printer.go#L457: if p.indent == 0 && droppedLinebreak {
printer.go#L646: defer func(indent int) { p.indent = indent }(p.indent)
printer.go#L647: p.indent = 0
printer.go#L666: if pos.IsValid() && pos.Column == 1 && p.indent > 0 {
printer.go#L801: p.indent++
printer.go#L803: p.indent--
printer.go#L804: if p.indent < 0 {
printer.go#L805: p.internalError("negative indentation:", p.indent)
printer.go#L806: p.indent = 0
printer.go#L1133: p.indent = 1
printer.go#L1145: p.indent = 1
![]() |
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. |