Skip to content

fmt: Scanf not waiting for input #48816

@PaulDotSH

Description

@PaulDotSH

What version of Go are you using (go version)?

What operating system and processor architecture are you using (go env)?

go1.17.1 windows/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

https://play.golang.org/p/TDFYs8OyOMZ

When I try to get input with fmt.Scanf (fmt.Scanf("%g",&numberFloat) and fmt.Scanf("%d", &base)), the first Scanf works on my windows machine but the second doesn't wait for input, in golang playground it doesn't wait for any input

What did you expect to see?

Scanf waiting for input

What did you see instead?

Scanf being ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions