You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically it required a specific shape to string literals within the pattern broken up with escape sequences just right so that when the pattern parser concatenated them all it re-used the underlying rune slice. The rune slice was an extract from the pattern itself, so the append calls were smashing the contents of the pattern accidentally. This meant the pattern was being parsed into a weird state and wouldn't match what you wanted.
The fix was to copy the runes from the pattern into a new slice instead of just slicing from the pattern itself. A simple fix after hours of debugging.
The code that caused the error:
Why nil ?
This should be the right result:
Sample code:
`package main
import (
"fmt"
)
func main() {
}`
The text was updated successfully, but these errors were encountered: