Hello, I’d like to know from you if the returned string from strings.Trim is what we expect:
package main
import (
“fmt”
“strings”
)
func main() {
fmt.Print(strings.Trim(“ciao.com”, “.com”))
}
It should return “ciao” or I miss something. If you run this code you see that return “ia”