Fix deprecation

This commit is contained in:
Erick Ruiz de Chavez 2025-01-10 07:19:12 -05:00
parent e4781e7f37
commit c36b3b6cb0
2 changed files with 2 additions and 3 deletions

2
go.mod
View file

@ -1,6 +1,6 @@
module git.sr.ht/~sircmpwn/kineto module git.sr.ht/~sircmpwn/kineto
go 1.15 go 1.16
require ( require (
git.sr.ht/~adnano/go-gemini v0.1.17 git.sr.ht/~adnano/go-gemini v0.1.17

View file

@ -5,7 +5,6 @@ import (
"fmt" "fmt"
"html/template" "html/template"
"io" "io"
"io/ioutil"
"log" "log"
"mime" "mime"
"net/http" "net/http"
@ -575,7 +574,7 @@ func main() {
bind = opt.Value bind = opt.Value
case 's': case 's':
external = false external = false
cssContent, err := ioutil.ReadFile(opt.Value) cssContent, err := os.ReadFile(opt.Value)
if err == nil { if err == nil {
css = string(cssContent) css = string(cssContent)
} else { } else {