transform: Golint fixes

This commit is contained in:
Bjørn Erik Pedersen 2016-03-23 09:35:50 +01:00
parent 672890339e
commit 626874b94c

View file

@ -13,12 +13,16 @@
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)
}