mirror of
https://github.com/mjl-/mox.git
synced 2025-01-14 01:06:27 +03:00
unbreak rfc/xr.go after changing golang.org/x/exp/maps
shouldn't have changed this one.
This commit is contained in:
parent
d1b87cdb0d
commit
e75419aeaf
1 changed files with 3 additions and 2 deletions
|
@ -11,13 +11,14 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
htmltemplate "html/template"
|
htmltemplate "html/template"
|
||||||
"log"
|
"log"
|
||||||
"maps"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"golang.org/x/exp/maps"
|
||||||
)
|
)
|
||||||
|
|
||||||
var destdir string
|
var destdir string
|
||||||
|
@ -32,7 +33,7 @@ func xwritefile(path string, buf []byte) {
|
||||||
p := filepath.Join(destdir, path)
|
p := filepath.Join(destdir, path)
|
||||||
os.MkdirAll(filepath.Dir(p), 0755)
|
os.MkdirAll(filepath.Dir(p), 0755)
|
||||||
err := os.WriteFile(p, buf, 0644)
|
err := os.WriteFile(p, buf, 0644)
|
||||||
xcheckf(err, "writing file", p)
|
xcheckf(err, "writing file %s", p)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in a new issue