☰
Debian Codegraph
@
0.4.0-3
0.4.0-2
/
/
generator
/
node.go
☽
☼
generator/node.go
code
plain
raw
Apache-2
2015 Michael Wagner <
[email protected]
>
debian/copyright
1
package generator
2
3
import (
4
"bytes"
5
"go/ast"
6
"go/printer"
7
"go/token"
8
)
9
10
func nodeToString(node ast.Node, fileSet *token.FileSet) string {
11
var buf bytes.Buffer
12
printer.Fprint(&buf, fileSet, node)
13
return buf.String()
14
}