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/5fed83a7-641e-3e5d-889c-a5e1a477d2f8%40danielgorbe.com.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to