transform: Golint fixes
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Mar 2016 08:35:50 +0000 (09:35 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Mar 2016 08:35:50 +0000 (09:35 +0100)
transform/absurl.go

index 1a98a592c619bdd36dd5e4207901b2c00b808781..255ac33b606f629688d553d0329924aac81bc813 100644 (file)
 
 package transform
 
-var ar *absURLReplacer = newAbsURLReplacer()
+var ar = newAbsURLReplacer()
 
+// AbsURL replaces relative URLs with absolute ones
+// in HTML files, using the baseURL setting.
 var AbsURL = func(ct contentTransformer) {
        ar.replaceInHTML(ct)
 }
 
+// AbsURLInXML replaces relative URLs with absolute ones
+// in XML files, using the baseURL setting.
 var AbsURLInXML = func(ct contentTransformer) {
        ar.replaceInXML(ct)
 }