main.go143 chars7 linesYou can use the regexp package in Go to remove a substring from a string. The regexp.MustCompile() function compiles a regular expression pattern, and ReplaceAllString() replaces all occurrences of the pattern with the replacement string (in this case, an empty string).
gistlibby LogSnag