Last active
July 29, 2019 17:58
-
-
Save arxdsilva/51fa6070cc775a27eb02f07fc7a7f1c8 to your computer and use it in GitHub Desktop.
string replacing in golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// info https://play.golang.org/p/uAWpm-rUc-1 | |
import ( | |
"fmt" | |
"strings" | |
) | |
func main() { | |
s := strings.Replace("nextpdf5,00reais_1564141286.pdf", ",", "", -1) | |
fmt.Println(s) | |
} | |
// nextpdf500reais_1564141286.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment