Hi all! I'm dealing with some multi valued column in postgres, and i have stomp into a bizzare behavoir in `fmt.Sscanf`
Please take a look at the following snippet, i also leave my question within the code and
this link to the playground so you can actually try it and see with you own eyes.
```
package main
import "fmt"
func main() {
var a int
var b string
input := "(1,beto)" // doesn't like the parenthesis
_, err := fmt.Sscanf(input, "(%d,%s)", &a, &b)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(a, b)
}
input = "1,beto" // this works
_, err = fmt.Sscanf(input, "%d,%s", &a, &b)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(a, b)
}
input = "beto,1" // doesn't like an string at first place, ¿¿WHAT i do?!?!
_, err = fmt.Sscanf(input, "%s,%d", &b, &a)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(a, b)
}
}
```
I
saw this ticket i'm wondering about how realiable is the Sscanf function indeed, as i saw that you guys having problems too.
Thanks for reading me!
V