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 "", rawurl, nil
 }

I thinks it should be a bug, what do you think?

-- 
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 https://groups.google.com/d/optout.

Reply via email to