If all you care about is the error parameter, you can write this like this:

```go
if _, err := fmt.Scanf("%s", &input); err != nil {
  panic(err)
}
```