net/url: add example to URL.ResolveReference
net/url: add example to URL.ResolveReference

Change-Id: I9db1997b8dc7e06e9d124753ead6221470a1edf9
Reviewed-on: https://go-review.googlesource.com/12254
Reviewed-by: Brad Fitzpatrick <ae9783c0b0efc69cd85ab025ddd17aa44cdc4aa5@golang.org>
Run-TryBot: Brad Fitzpatrick <ae9783c0b0efc69cd85ab025ddd17aa44cdc4aa5@golang.org>

NunoEdgarGub1/go,donnel6809/go,g522342435/go,akutz/go,dterei/go,Young55555/go,wangfakang/go-1,cookerzhu/go,uileyar/go,NichoZhang/go,mbrukman/go,Young55555/go,yasarkunduz/go,rachtsingh/gogojuice,jdhenke/go,mbrukman/go,gohin/go,lihuanghai/go,mgyenik/go,lihuanghai/go,leeric92/go,chinanjjohn2012/go,Endika/go,kevinc0825/go,Pulgafree/go,dkolbly/go,shazow/go,lihuanghai/go,rentongzhang/go,andrewchambers/go,ericsnowcurrently/go,Charlesdong/go-1,gdey/go,goodlang/good,jonasi/go,linux-on-ibm-z/go,dpatel06/go,vanloswang/go,arschles/go-1,leeric92/go,josharian/go,binarycrusader/go,xujianhai/go,sinuos/go,snowsnail/go,malvira/go,RBEGamer/go,beealone/go,9618211/go,NichoZhang/go,shishkander/go,cainiaocome/go,sosop/go,sinuos/go,kakuhiroshi/go,CAFxX/go,WIZARD-CXY/go,derekmarcotte/go,samanalysis/go,RBEGamer/go,ericsnowcurrently/go,likesea/go,qskycolor/go,honsiorovskyi/go,dkolbly/go,xiaobodu/go,mgyenik/go,mikekap/go,vishsingh/go,shazow/go,jacobxk/go,likesea/go,theif519/go,Cofyc/go,gdey/go,suncycheng/go,ericsnowcurrently/go,zcwfeng/go,golang/go,gohin/go,vishsingh/go,theass/go,yangzhongj/go,CiscoCloud/go,roth1002/go,ganboing/go-esx,g522342435/go,mdp/go,jacobxk/go,baiyunping333/go,honsiorovskyi/go,derekmarcotte/go,XuYunnan/go,xiaobodu/go,willjunspecial/go,linux-on-ibm-z/go,alex-zhang/go,codestation/go,jdeng/go,Endika/go,sndnvaps/go,alash3al/go,theass/go,gohin/go,PoohSunny/go,arschles/golang-go,danycoro/go,zhangg/go,GeorgiCodes/go,springning/go,Cofyc/go,ichu501/go,CarterTsai/go,vanloswang/go,mwhudson/go,mikekap/go,mdp/go,Jordanzuo/go,chinanjjohn2012/go,sosop/go,theass/go,goodlang/good,xiaobodu/go,cainiaocome/go,vsekhar/elastic-go,snowsnail/go,yangzhongj/go,famorted/go,samanalysis/go,ImJasonH/go,vishsingh/go,akutz/go,ganboing/go-esx,yasarkunduz/go,jdhenke/go,samanalysis/go,theass/go,CiscoCloud/go,ifagnosticism/go,theif519/go,donnel6809/go,youprofit/go,weisd/go,binarycrusader/go,linux-on-ibm-z/go,CodyGuo/go,jacobhaven/go,dgnorton/go,willjunspecial/go,akutz/go,willjunspecial/go,Badredapple/go,ObjectiveJoe/go,jdeng/go,snowsnail/go,leeric92/go,jacobxk/go,myPublicGit/go,JioCloud/go,josharian/go,NunoEdgarGub1/go,jacobhaven/go,dafyddcrosby/go,theif519/go,cloudflare/go,jasonxiong/go,XuYunnan/go,slavau/go,binarycrusader/go,lihuanghai/go,Pulgafree/go,CarterTsai/go,cloudflare/go,jacobhaven/go,xiuzhifu/go,rentongzhang/go,nakedgc/go,yuhengye/go,cloudflare/go,jonathanmarvens/go,kim-racktop/go,shines77/go,Pulgafree/go,malvira/go,skotti/go,jacobsa/go,agaurav/go,binarycrusader/go,beealone/go,joshsammut/go,linux-on-ibm-z/go,willjunspecial/go,danielsoro/go,RBEGamer/go,dpatel06/go,ErikDubbelboer/go,rentongzhang/go,momchil-velikov/go,Charlesdong/go-1,dgnorton/go,kevinc0825/go,AALEKH/go,slavau/go,miolini/go,cyberroadie/go,CodyGuo/go,golang/go,snowsnail/go,xinhuang327/go,golang/go,CodyGuo/go,qskycolor/go,pgmreddy/go,slavau/go,shishkander/go,vsekhar/elastic-go,devpadawan/go,yuhengye/go,nakedgc/go,albertjin/golang-go,ImJasonH/go,ifagnosticism/go,ifagnosticism/go,g522342435/go,zcwfeng/go,josharian/go,devpadawan/go,binarycrusader/go,Jordanzuo/go,donnel6809/go,leeric92/go,roth1002/go,fjballest/golang,sosop/go,jmptrader/go,zouchao2010/go,kakuhiroshi/go,NunoEdgarGub1/go,uileyar/go,monetate/go,stormltf/go,GeorgiCodes/go,weisd/go,cloudrain21/go,andrewchambers/go,skatsuta/go,zhangg/go,myPublicGit/go,arschles/golang-go,shishkander/go,honsiorovskyi/go,JioCloud/go,CiscoCloud/go,arschles/go-1,dkolbly/go,WIZARD-CXY/go,cookerzhu/go,rachtsingh/gogojuice,Stan-Lin-/go,Endika/go,chinanjjohn2012/go,kevinc0825/go,sndnvaps/go,PoohSunny/go,RBEGamer/go,kevinc0825/go,jonahglover/go,baiyunping333/go,yuhengye/go,suncycheng/go,alash3al/go,alash3al/go,myPublicGit/go,jdhenke/go,ichu501/go,Samurais/go,famorted/go,b54898533/go,famorted/go,wangfakang/go-1,akutz/go,theass/go,jasonxiong/go,shines77/go,dkolbly/go,constantine001/go,stormltf/go,nawawi/go,cnbin/go,slavau/go,theif519/go,cloudrain21/go,jacobsa/go,mwhudson/go,xiuzhifu/go,Samurais/go,goodlang/good,undergrowthlinear/go,ErikDubbelboer/go,samanalysis/go,cloudrain21/go,cloudflare/go,vanloswang/go,sndnvaps/go,alash3al/go,jmptrader/go,g522342435/go,shishkander/go,vishsingh/go,samanalysis/go,dpatel06/go,qskycolor/go,jdeng/go,cainiaocome/go,yuhengye/go,shishkander/go,greyhwndz/go,vsdutka/go,mwhudson/go,Badredapple/go,cloudrain21/go,dgnorton/go,JioCloud/go,pgmreddy/go,jasonxiong/go,goodlang/good,jdeng/go,binarycrusader/go,jonasi/go,chinanjjohn2012/go,codestation/go,constantine001/go,parkdy/go,jacobhaven/go,baiyunping333/go,theass/go,pgmreddy/go,binarycrusader/go,shines77/go,XuYunnan/go,mdp/go,dafyddcrosby/go,myPublicGit/go,monetate/go,uileyar/go,jdhenke/go,pgmreddy/go,albertjin/golang-go,Jordanzuo/go,theif519/go,dterei/go,springning/go,yasarkunduz/go,Young55555/go,g522342435/go,jonahglover/go,arschles/go-1,cnbin/go,vsdutka/go,greyhwndz/go,PoohSunny/go,qskycolor/go,jacobhaven/go,kim-racktop/go,cnbin/go,jefby/go,leeric92/go,famorted/go,vanloswang/go,monetate/go,dpatel06/go,ericsnowcurrently/go,dafyddcrosby/go,odeke-em/go,danycoro/go,zcwfeng/go,arschles/golang-go,dterei/go,CarterTsai/go,arschles/golang-go,nawawi/go,malvira/go,CodyGuo/go,mikekap/go,akutz/go,joshsammut/go,odeke-em/go,beealone/go,malvira/go,pgmreddy/go,likesea/go,kevinc0825/go,ericsnowcurrently/go,theif519/go,Badredapple/go,nakedgc/go,constantine001/go,sinuos/go,zhangg/go,Young55555/go,xujianhai/go,springning/go,sndnvaps/go,CodyGuo/go,codestation/go,ImJasonH/go,pgmreddy/go,alex-zhang/go,rentongzhang/go,b54898533/go,vsekhar/elastic-go,akutz/go,NunoEdgarGub1/go,xiaobodu/go,Badredapple/go,jonathanmarvens/go,danycoro/go,goodlang/good,pgmreddy/go,ErikDubbelboer/go,AALEKH/go,shazow/go,monetate/go,xujianhai/go,constantine001/go,cloudrain21/go,CiscoCloud/go,Jordanzuo/go,gdey/go,g522342435/go,jonathanmarvens/go,miolini/go,yangzhongj/go,xinhuang327/go,cyberroadie/go,jefby/go,jacobsa/go,qskycolor/go,NichoZhang/go,yasarkunduz/go,jacobxk/go,skotti/go,CiscoCloud/go,jmptrader/go,mbrukman/go,cookerzhu/go,golang/go,jonathanmarvens/go,derekmarcotte/go,chinanjjohn2012/go,dgnorton/go,lihuanghai/go,gdey/go,famorted/go,danycoro/go,jefby/go,andrewchambers/go,jacobxk/go,parkdy/go,beealone/go,Charlesdong/go-1,alash3al/go,beealone/go,vsdutka/go,polyverse-security/go,NunoEdgarGub1/go,mikekap/go,albertjin/golang-go,danielsoro/go,yeyuguo/go,dafyddcrosby/go,zouchao2010/go,cyberroadie/go,baiyunping333/go,honsiorovskyi/go,youprofit/go,NunoEdgarGub1/go,jonahglover/go,snowsnail/go,springning/go,derekmarcotte/go,samanalysis/go,ifagnosticism/go,shines77/go,xinhuang327/go,youprofit/go,vanloswang/go,Badredapple/go,mbrukman/go,snowsnail/go,skatsuta/go,jdeng/go,xujianhai/go,NunoEdgarGub1/go,jasonxiong/go,roth1002/go,miolini/go,rachtsingh/gogojuice,derekmarcotte/go,zouchao2010/go,kim-racktop/go,CarterTsai/go,Badredapple/go,greyhwndz/go,AALEKH/go,dafyddcrosby/go,jameskumar/go,ericsnowcurrently/go,Endika/go,ganboing/go-esx,stormltf/go,RBEGamer/go,mgyenik/go,jmptrader/go,xinhuang327/go,jacobhaven/go,undergrowthlinear/go,JioCloud/go,ErikDubbelboer/go,nawawi/go,constantine001/go,ericsnowcurrently/go,nawawi/go,codestation/go,PoohSunny/go,kakuhiroshi/go,goodlang/good,vishsingh/go,mdp/go,XuYunnan/go,dterei/go,JioCloud/go,vsdutka/go,josharian/go,sndnvaps/go,jefby/go,agaurav/go,Jordanzuo/go,stormltf/go,mikekap/go,slavau/go,jmptrader/go,kevinc0825/go,shines77/go,nawawi/go,xiuzhifu/go,miolini/go,9618211/go,cnbin/go,arschles/go-1,9618211/go,ericsnowcurrently/go,joshsammut/go,constantine001/go,NichoZhang/go,shishkander/go,danycoro/go,greyhwndz/go,jonahglover/go,donnel6809/go,joshsammut/go,polyverse-security/go,linux-on-ibm-z/go,odeke-em/go,PoohSunny/go,nawawi/go,CAFxX/go,ganboing/go-esx,parkdy/go,CAFxX/go,JioCloud/go,rachtsingh/gogojuice,RBEGamer/go,ObjectiveJoe/go,cainiaocome/go,chinanjjohn2012/go,PoohSunny/go,ifagnosticism/go,Samurais/go,donnel6809/go,willjunspecial/go,parkdy/go,jonathanmarvens/go,yuhengye/go,b54898533/go,yeyuguo/go,sinuos/go,kim-racktop/go,weisd/go,christopher-henderson/Go,WIZARD-CXY/go,cnbin/go,honsiorovskyi/go,skotti/go,cookerzhu/go,wangfakang/go-1,golang/go,momchil-velikov/go,ganboing/go-esx,arschles/go-1,Endika/go,ImJasonH/go,dgnorton/go,momchil-velikov/go,golang/go,CarterTsai/go,ganboing/go-esx,jacobhaven/go,zhangg/go,parkdy/go,lihuanghai/go,Cofyc/go,skatsuta/go,jdhenke/go,codestation/go,albertjin/golang-go,Cofyc/go,suncycheng/go,zcwfeng/go,theif519/go,qskycolor/go,jonasi/go,monetate/go,arschles/golang-go,dterei/go,goodlang/good,baiyunping333/go,Cofyc/go,weisd/go,mwhudson/go,skotti/go,skotti/go,CiscoCloud/go,cainiaocome/go,likesea/go,mdp/go,jonasi/go,jmptrader/go,akutz/go,undergrowthlinear/go,skotti/go,uileyar/go,jonathanmarvens/go,Pulgafree/go,mgyenik/go,CodyGuo/go,yeyuguo/go,skotti/go,sinuos/go,suncycheng/go,sinuos/go,arschles/go-1,ifagnosticism/go,Samurais/go,stormltf/go,ObjectiveJoe/go,gdey/go,alex-zhang/go,xujianhai/go,jefby/go,deft-code/go,Charlesdong/go-1,jacobsa/go,Jordanzuo/go,4ad/go,4ad/go,Samurais/go,youprofit/go,arschles/golang-go,jacobxk/go,WIZARD-CXY/go,CodyGuo/go,Samurais/go,parkdy/go,CodyGuo/go,mdp/go,dafyddcrosby/go,vanloswang/go,yangzhongj/go,likesea/go,jefby/go,cloudflare/go,weisd/go,Stan-Lin-/go,jacobsa/go,WIZARD-CXY/go,malvira/go,andrewchambers/go,wangfakang/go-1,yangzhongj/go,devpadawan/go,jonasi/go,agaurav/go,g522342435/go,alex-zhang/go,Stan-Lin-/go,4ad/go,uileyar/go,arschles/golang-go,dkolbly/go,roth1002/go,monetate/go,shines77/go,undergrowthlinear/go,cloudrain21/go,momchil-velikov/go,deft-code/go,jasonxiong/go,dpatel06/go,Charlesdong/go-1,devpadawan/go,zouchao2010/go,CAFxX/go,jmptrader/go,constantine001/go,9618211/go,vishsingh/go,qskycolor/go,honsiorovskyi/go,jasonxiong/go,xiuzhifu/go,dgnorton/go,Young55555/go,sndnvaps/go,Young55555/go,sosop/go,jacobxk/go,josharian/go,mikekap/go,b54898533/go,zhangg/go,snowsnail/go,mbrukman/go,miolini/go,greyhwndz/go,nakedgc/go,dterei/go,baiyunping333/go,nakedgc/go,Charlesdong/go-1,derekmarcotte/go,joshsammut/go,donnel6809/go,XuYunnan/go,fjballest/golang,cnbin/go,kim-racktop/go,sinuos/go,ichu501/go,golang/go,nawawi/go,greyhwndz/go,gdey/go,vanloswang/go,undergrowthlinear/go,agaurav/go,Samurais/go,Stan-Lin-/go,zouchao2010/go,mikekap/go,miolini/go,4ad/go,vanloswang/go,momchil-velikov/go,josharian/go,slavau/go,jameskumar/go,vsdutka/go,chinanjjohn2012/go,andrewchambers/go,roth1002/go,rachtsingh/gogojuice,WIZARD-CXY/go,Jordanzuo/go,baiyunping333/go,kakuhiroshi/go,NunoEdgarGub1/go,dgnorton/go,uileyar/go,xinhuang327/go,fjballest/golang,ImJasonH/go,alash3al/go,yasarkunduz/go,weisd/go,springning/go,CAFxX/go,shazow/go,dpatel06/go,constantine001/go,springning/go,zcwfeng/go,4ad/go,beealone/go,jameskumar/go,samanalysis/go,vishsingh/go,gohin/go,ObjectiveJoe/go,mgyenik/go,Charlesdong/go-1,cainiaocome/go,NichoZhang/go,CAFxX/go,beealone/go,parkdy/go,vsdutka/go,theass/go,vsdutka/go,GeorgiCodes/go,dterei/go,jdeng/go,dterei/go,rachtsingh/gogojuice,kakuhiroshi/go,kim-racktop/go,cookerzhu/go,honsiorovskyi/go,rentongzhang/go,b54898533/go,albertjin/golang-go,vsdutka/go,cookerzhu/go,theif519/go,xinhuang327/go,agaurav/go,danielsoro/go,ErikDubbelboer/go,XuYunnan/go,yeyuguo/go,devpadawan/go,shazow/go,arschles/go-1,odeke-em/go,jonasi/go,lihuanghai/go,yasarkunduz/go,cyberroadie/go,parkdy/go,GeorgiCodes/go,mikekap/go,deft-code/go,joshsammut/go,xiuzhifu/go,roth1002/go,myPublicGit/go,famorted/go,jdeng/go,undergrowthlinear/go,joshsammut/go,Endika/go,yasarkunduz/go,nakedgc/go,mgyenik/go,polyverse-security/go,willjunspecial/go,likesea/go,snowsnail/go,monetate/go,cyberroadie/go,derekmarcotte/go,danielsoro/go,chinanjjohn2012/go,jonathanmarvens/go,cyberroadie/go,ganboing/go-esx,jdhenke/go,jacobsa/go,Pulgafree/go,miolini/go,malvira/go,jonasi/go,jasonxiong/go,Stan-Lin-/go,ObjectiveJoe/go,Young55555/go,cyberroadie/go,roth1002/go,monetate/go,youprofit/go,gohin/go,wangfakang/go-1,ObjectiveJoe/go,jmptrader/go,4ad/go,cloudflare/go,jasonxiong/go,sosop/go,cookerzhu/go,leeric92/go,jdhenke/go,myPublicGit/go,CarterTsai/go,alash3al/go,ichu501/go,gohin/go,mbrukman/go,JioCloud/go,Samurais/go,odeke-em/go,dpatel06/go,ifagnosticism/go,Stan-Lin-/go,RBEGamer/go,mbrukman/go,zcwfeng/go,josharian/go,zcwfeng/go,famorted/go,Stan-Lin-/go,polyverse-security/go,alex-zhang/go,jacobsa/go,RBEGamer/go,codestation/go,GeorgiCodes/go,alex-zhang/go,CarterTsai/go,jameskumar/go,binarycrusader/go,joshsammut/go,ObjectiveJoe/go,rentongzhang/go,AALEKH/go,sndnvaps/go,dgnorton/go,ImJasonH/go,arschles/golang-go,yangzhongj/go,NichoZhang/go,alex-zhang/go,odeke-em/go,jdhenke/go,fjballest/golang,yuhengye/go,cookerzhu/go,CiscoCloud/go,miolini/go,undergrowthlinear/go,zouchao2010/go,9618211/go,stormltf/go,wangfakang/go-1,danielsoro/go,momchil-velikov/go,polyverse-security/go,xiaobodu/go,cnbin/go,9618211/go,xiaobodu/go,zhangg/go,andrewchambers/go,GeorgiCodes/go,jonahglover/go,b54898533/go,greyhwndz/go,youprofit/go,andrewchambers/go,rentongzhang/go,cyberroadie/go,golang/go,CAFxX/go,sndnvaps/go,leeric92/go,josharian/go,Cofyc/go,yeyuguo/go,zhangg/go,nakedgc/go,4ad/go,likesea/go,devpadawan/go,beealone/go,shazow/go,fjballest/golang,willjunspecial/go,lihuanghai/go,AALEKH/go,sinuos/go,vsekhar/elastic-go,xujianhai/go,albertjin/golang-go,xiaobodu/go,Stan-Lin-/go,kim-racktop/go,donnel6809/go,sosop/go,ErikDubbelboer/go,zhangg/go,ImJasonH/go,ichu501/go,CAFxX/go,weisd/go,skatsuta/go,yeyuguo/go,alash3al/go,vishsingh/go,jacobhaven/go,mwhudson/go,shishkander/go,suncycheng/go,akutz/go,odeke-em/go,mgyenik/go,devpadawan/go,Badredapple/go,yangzhongj/go,ErikDubbelboer/go,Jordanzuo/go,ichu501/go,danycoro/go,jacobxk/go,jonasi/go,dkolbly/go,b54898533/go,rachtsingh/gogojuice,deft-code/go,andrewchambers/go,samanalysis/go,yuhengye/go,honsiorovskyi/go,cainiaocome/go,mwhudson/go,danielsoro/go,jonahglover/go,linux-on-ibm-z/go,albertjin/golang-go,codestation/go,Pulgafree/go,cloudflare/go,stormltf/go,polyverse-security/go,rachtsingh/gogojuice,GeorgiCodes/go,skotti/go,roth1002/go,fjballest/golang,linux-on-ibm-z/go,kim-racktop/go,albertjin/golang-go,ifagnosticism/go,dkolbly/go,malvira/go,yangzhongj/go,PoohSunny/go,malvira/go,famorted/go,slavau/go,Endika/go,4ad/go,wangfakang/go-1,agaurav/go,momchil-velikov/go,kevinc0825/go,jameskumar/go,xinhuang327/go,Pulgafree/go,skatsuta/go,kakuhiroshi/go,fjballest/golang,devpadawan/go,theass/go,skatsuta/go,GeorgiCodes/go,jacobsa/go,cainiaocome/go,yasarkunduz/go,AALEKH/go,momchil-velikov/go,gohin/go,jefby/go,CiscoCloud/go,Pulgafree/go,cnbin/go,mdp/go,NichoZhang/go,likesea/go,yeyuguo/go,vsekhar/elastic-go,kevinc0825/go,PoohSunny/go,myPublicGit/go,fjballest/golang,willjunspecial/go,yuhengye/go,rentongzhang/go,dkolbly/go,skatsuta/go,kakuhiroshi/go,alex-zhang/go,deft-code/go,shines77/go,jameskumar/go,deft-code/go,danielsoro/go,Young55555/go,NichoZhang/go,mwhudson/go,deft-code/go,xujianhai/go,springning/go,WIZARD-CXY/go,AALEKH/go,vsekhar/elastic-go,xiuzhifu/go,slavau/go,agaurav/go,gdey/go,jonathanmarvens/go,gdey/go,youprofit/go,AALEKH/go,derekmarcotte/go,XuYunnan/go,ErikDubbelboer/go,b54898533/go,codestation/go,stormltf/go,dafyddcrosby/go,jameskumar/go,myPublicGit/go,WIZARD-CXY/go,wangfakang/go-1,cloudflare/go,danycoro/go,springning/go,mdp/go,xujianhai/go,danycoro/go,ObjectiveJoe/go,linux-on-ibm-z/go,vsekhar/elastic-go,uileyar/go,jonahglover/go,cloudrain21/go,donnel6809/go,agaurav/go,xiuzhifu/go,shazow/go,leeric92/go,ImJasonH/go,xiaobodu/go,g522342435/go,youprofit/go,Cofyc/go,undergrowthlinear/go,sosop/go,dpatel06/go,uileyar/go,Endika/go,jonahglover/go,kakuhiroshi/go,qskycolor/go,xinhuang327/go,9618211/go,shazow/go,suncycheng/go,mbrukman/go,baiyunping333/go,zouchao2010/go,Charlesdong/go-1,danielsoro/go,skatsuta/go,vsekhar/elastic-go,CarterTsai/go,nawawi/go,shishkander/go,xiuzhifu/go,odeke-em/go,jameskumar/go,jdeng/go,dafyddcrosby/go,mgyenik/go,gohin/go,yeyuguo/go,pgmreddy/go,XuYunnan/go,shines77/go,zouchao2010/go,sosop/go,weisd/go,polyverse-security/go,ichu501/go,jefby/go,ichu501/go,9618211/go,polyverse-security/go,Badredapple/go,ganboing/go-esx,zcwfeng/go,mwhudson/go,greyhwndz/go,Cofyc/go,cloudrain21/go,deft-code/go,nakedgc/go,JioCloud/go,goodlang/good,arschles/go-1,suncycheng/go,suncycheng/go