Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DebugPrint: Print the string value of tokens
In DebugPrint, if a value implements fmt.Stringer, and isn't a zero value, display its string value in addition to the default %#v format. For the most part, this prints the string value of "tokens", e.g. for a syntax.Redirect.Op, instead of "Op: 0x3b", you get "Op: 0x3b (>&)".
- Loading branch information