We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fmt doc says: Scanf, Fscanf and Sscanf require newlines in the input to match newlines in the format; the other routines treat newlines as spaces.
Scanf, Fscanf and Sscanf require newlines in the input to match newlines in the format; the other routines treat newlines as spaces.
The following program spits out error (should not according to doc):
package main import ( "fmt" "log" ) func main() { var a, b int _, err := fmt.Sscanf("1\n2", "%d %d", &a, &b) if err == nil { log.Fatalf("got - %q, expected - %q", err, "unexpected newline") } }
on commit 335e44d
The text was updated successfully, but these errors were encountered:
Duplicate of #9459
Sorry, something went wrong.
Not a duplicate of #9459, sorry. This is a different issue; fix out for review in https://go-review.googlesource.com/10779
CL https://golang.org/cl/10779 mentions this issue.
CL https://golang.org/cl/10991 mentions this issue.
57f4b43
No branches or pull requests
fmt doc says:
Scanf, Fscanf and Sscanf require newlines in the input to match newlines in the format; the other routines treat newlines as spaces.
The following program spits out error (should not according to doc):
on commit 335e44d
The text was updated successfully, but these errors were encountered: