Hi!
Go version tested: 1.18, 1.19
package main
import (
"fmt"
"net/url"
)
func main() {
_, e := url.Parse("Hey Go, are you ok? :-)")
if e != nil {
fmt.Println("Yes! I,m check this error!")
} else {
fmt.Println("NO! I broken and kill your production, grrrrr")
}
}
Thanks!