We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71396e commit cb1f345Copy full SHA for cb1f345
docs/Visitor-and-Patch.md
@@ -91,8 +91,8 @@ func (p *patcher) Visit(node *ast.Node) {
91
}
92
```
93
94
-Type information is also available. Here is an example, there all `fmt.Stringer`
95
-interface automatically converted to `string` type.
+Type information is also available. In the following example, any struct
+implementing the `fmt.Stringer` interface is automatically converted to `string` type.
96
97
```go
98
func main() {
@@ -136,6 +136,7 @@ func (p *stringerPatcher) Visit(node *ast.Node) {
136
Callee: &ast.MemberNode{
137
Node: *node,
138
Field: "String",
139
+ Property: &ast.StringNode{Value: "String"},
140
},
141
})
142
0 commit comments