421
426
filter := func(s string) bool { return rx.MatchString(s) }
424
430
ast.FilterFile(info.PAst, filter)
425
431
// Special case: Don't use templates for printing
426
432
// so we only get the filtered declarations without
427
433
// package clause or extra whitespace.
428
434
for i, d := range info.PAst.Decls {
435
444
FormatText(os.Stdout, buf.Bytes(), -1, true, "", nil)