On Tue, Jan 25, 2022 at 12:45 PM Victor Giordano <vitucho3...@gmail.com> wrote: > > Thanks Ian, I will take your advice and use another approach, I regret this > cuz it would be nice to have something already working. > > Without any intent to offense or say something hard, as a client of the > library it kind looks quite buggy, the parenthesis are still an issue > disregarding that the values are actually space-delimited. The error messages > clearly are an invitation to see the source for deeper understanding rather > than given any clues.
Your newer example is still working as documented. The %s swallows everything up to the space, including the right parenthesis. Then there is nothing to match the right parenthesis in the format string. This behavior dates back to the C function sscanf that the Go code is based on. The %s code can be useful for space-separated fields, but is not very useful for anything else. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUjc9NMJLZu8npE%3DYiCw2Fwd-_Db8wyxW%3DtipyXbWO-_Q%40mail.gmail.com.