rel2abs ------- Go library to convert all relative URLs to absolute ones, resolved against a specified base URL. EXAMPLE import ( "fmt" "git.icyphox.sh/rel2abs" ) func main() { htmlRel := `[1]` htmlAbs, err := rel2abs.Convert([]byte(htmlRel), "http://foo.com/bar") fmt.Println(htmlAbs) // [1] }