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
r := NewReaderString(`null.string ::1`)
r.Next()
fmt.Println(r.Err())
Currently this code snippet does not return an error. This is because the text reader parses null as a symbol token and sets the current type as string. When you call r.Next() again it will parse :: as a invalid symbol and will error out.
We should read the null and check if it is an annotation by peeking forward in the stream for ::, skipping whitespaces(tabs, new lines, etc)
The text was updated successfully, but these errors were encountered:
Currently this code snippet does not return an error. This is because the text reader parses
null
as a symbol token and sets the current type asstring
. When you callr.Next()
again it will parse::
as a invalid symbol and will error out.We should read the
null
and check if it is an annotation by peeking forward in the stream for::
, skipping whitespaces(tabs, new lines, etc)The text was updated successfully, but these errors were encountered: