mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
transform: Golint fixes
This commit is contained in:
1 parent
672890339e
commit
626874b94c
1 file changed
+5
-1
+5
-1
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user