package main import ( "fmt" "os" "path/filepath" "rescribe.xyz/go.git/lib/line" ) func copylineimg(fn string, l line.Detail) error { f, err := os.Create(fn) if err != nil { return err } defer f.Close() return l.Img.CopyLineTo(f) } func htmlout(dir string, lines line.Details) error { err := os.MkdirAll(dir, 0700) if err != nil { return err } fn := filepath.Join(dir, "index.html") f, err := os.Create(fn) if err != nil { return err } defer f.Close() _, err = fmt.Fprintf(f, "
%.4f%% | \n"+
"%s %s | \n"+ "%s | \n"+
"