mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
- make printer interface easily extensible w/o breaking clients (in the future)
- replacement for p4 CL 35999 (abandoned) R=rsc http://go/go-review/1012010
This commit is contained in:
parent
abc6ad427d
commit
8f52a82169
5 changed files with 79 additions and 70 deletions
|
|
@ -271,7 +271,7 @@ func writeNode(w io.Writer, node interface{}, html bool, style printer.Styler) {
|
|||
if html {
|
||||
mode |= printer.GenHTML;
|
||||
}
|
||||
printer.Fprint(w, node, mode, *tabwidth, style);
|
||||
(&printer.Config{mode, *tabwidth, style}).Fprint(w, node);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue