obviously, you could do this... https://play.golang.org/p/isqA3N0LBkn

or better?...  https://play.golang.org/p/8hXgZqBNyns

On Friday, 10 April 2020 18:17:53 UTC+1, Daniel Gorbe wrote:
>
> Hi!
>
>
> 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"*
>
>
> Best regards,
>
>     Daniel
>
> -- 
> Daniel Gorbe
> GNU/Linux System Administrator - IT Security Specialist
> PGP: 0x5AEB729B3E642A16
> Web: https://danielgorbe.com
>
>

-- 
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/e053bcc6-ea93-41ef-a41b-eeab920029ea%40googlegroups.com.

Reply via email to