This commit is contained in:
1-6
2023-09-24 08:50:43 +08:00
parent 20416a586a
commit e9eb67473b
9 changed files with 35 additions and 216 deletions
+1 -2
View File
@@ -7,7 +7,6 @@ import (
"embed"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"os"
@@ -132,7 +131,7 @@ func initWeb() {
}
if is_index {
var data []byte
data, err = ioutil.ReadAll(file)
data, err = io.ReadAll(file)
if err != nil {
return err
}