Skip to content

Instantly share code, notes, and snippets.

@arxdsilva
Last active July 29, 2019 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arxdsilva/51fa6070cc775a27eb02f07fc7a7f1c8 to your computer and use it in GitHub Desktop.
Save arxdsilva/51fa6070cc775a27eb02f07fc7a7f1c8 to your computer and use it in GitHub Desktop.
string replacing in golang
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