Closed claudiosegala closed 5 years ago
Solution: remove net/url:Parse
function and removing scheme by hand.
Could you please rewrite the connection string with a regex?
Since the goal is to remove the schema and should give an error in case of schemas different from mysql
. I think this approach is the best, other approaches would just be more complex without providing anything new.
Fix #19
net/url:Parse
function was unable to parse"mysql://root:secret@tcp(localhost:3306)/whisper?charset=utf8mb4&parseTime=True&loc=Local"