~kaction/fix-links

fc80a2cf8ea4b5c0e2399ed0e5c9d59c1bdc455e — Dmitry Bogatov 5 months ago bb9df80
!go fmt
1 files changed, 1 insertions(+), 2 deletions(-)

M main.go
M main.go => main.go +1 -2
@@ 66,7 66,7 @@ func main() {

		parent := here
		if p != d.Name() {
			pname := strings.TrimSuffix(p, "/" + d.Name())
			pname := strings.TrimSuffix(p, "/"+d.Name())
			parent, err = fs.Sub(here, pname)
			if err != nil {
				return err


@@ 80,7 80,6 @@ func main() {
		}
		defer file.Close()


		node, err := html.Parse(file)
		if err != nil {
			log.Printf("warning: failed to parse %v\n", realPath)