Re: [go-nuts] How to print an AST without formatting?

2020-01-10 Thread David Finkel
On Thu, Jan 9, 2020 at 10:22 AM wrote: > Hello, > > I am looking for a way to keep to original token positioning but I cannot > find how to avoid it when using `go/printer` or `go/format`. > Basically, how to make this example print the same string that was parsed: >

[go-nuts] How to print an AST without formatting?

2020-01-09 Thread julio
Hello, I am looking for a way to keep to original token positioning but I cannot find how to avoid it when using `go/printer` or `go/format`. Basically, how to make this example print the same string that was parsed: https://play.golang.org/p/dI7WcevQJAZ Thanks for your help! Julio -- You