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
in golang-calls.go on line 17 the error "Illegal rune literal" occurs because in Go, single quotes are used for character (rune) literals, not for strings. However, in your code, you are trying to define a JSON string within single quotes, which Go interprets as a rune literal.
This can easily be adjusted with a set of backticks or double quotes for string literals like so:
in golang-calls.go on line 17 the error "Illegal rune literal" occurs because in Go, single quotes are used for character (rune) literals, not for strings. However, in your code, you are trying to define a JSON string within single quotes, which Go interprets as a rune literal.
This can easily be adjusted with a set of backticks or double quotes for string literals like so:
Might be very nitpick but this will make so the code example can compile out of the box ✌
The text was updated successfully, but these errors were encountered: