On Fri, Apr 10, 2020 at 10:17 AM 'Daniel Gorbe' via golang-nuts <golang-nuts@googlegroups.com> wrote: > > It is possible to skip elements of a string with Sscanf()? As in C with %*s. > > Example: > > var res string > > text := "A simple text" > > fmt.Sscanf(text, "%*s %*s %s", &res) > > fmt.Printf("%s\n", res) // print: "text"
No, at present there doesn't seem to be any support for that. 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/CAOyqgcUEgF84a1gXEOmqwjR%2B1%3Dwy-4TUZr45G6oZNMi2q1c8KQ%40mail.gmail.com.