// make node's href absolute func absoluteURL(node xml.Node) { url := node.Attribute("href").Value() node.SetAttr("href", githubHost+url) }