Fix deprecation
This commit is contained in:
parent
e4781e7f37
commit
c36b3b6cb0
2 changed files with 2 additions and 3 deletions
2
go.mod
2
go.mod
|
@ -1,6 +1,6 @@
|
|||
module git.sr.ht/~sircmpwn/kineto
|
||||
|
||||
go 1.15
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
git.sr.ht/~adnano/go-gemini v0.1.17
|
||||
|
|
3
main.go
3
main.go
|
@ -5,7 +5,6 @@ import (
|
|||
"fmt"
|
||||
"html/template"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"mime"
|
||||
"net/http"
|
||||
|
@ -575,7 +574,7 @@ func main() {
|
|||
bind = opt.Value
|
||||
case 's':
|
||||
external = false
|
||||
cssContent, err := ioutil.ReadFile(opt.Value)
|
||||
cssContent, err := os.ReadFile(opt.Value)
|
||||
if err == nil {
|
||||
css = string(cssContent)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue