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]
}
Revert
Anirudh Oppiliappan x@icyphox.sh
Mon, 19 Dec 2022 09:05:52 +0530
Update go.mod
Anirudh Oppiliappan x@icyphox.sh
Sun, 04 Dec 2022 15:19:10 +0530
Rename to Convert
Anirudh Oppiliappan x@icyphox.sh
Thu, 30 Sep 2021 11:31:48 +0530
clone
git clone https://git.icyphox.sh/rel2abs