[go-nuts] url.parse issue if the first character of a url is a number

2019-02-03 Thread Tamás Gulácsi
An url must start with a scheme (i.e. http://). -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit

[go-nuts] url.parse issue if the first character of a url is a number

2019-02-02 Thread xuejoy
If a url frist character is a number like 5abc.cnd.com:443, it will throws an error during url.parse() I checked the url.go source code, and I noticed the root cause is the below code( method getschema()): case '0' <= c && c <= '9' || c == '+' || c == '-' || c == '.': if i == 0 { return "",