Update deps to support go 1.23 (#368)

* Update deps to support go 1.23

* Test updated golangci config

* Fix deprecated ioutil references
This commit is contained in:
Joona Hoikkala
2024-12-15 13:00:37 +02:00
committed by GitHub
parent 27e8251d11
commit 139a0dd03b
7 changed files with 125 additions and 146 deletions

4
api.go
View File

@ -3,7 +3,7 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"github.com/julienschmidt/httprouter"
@ -24,7 +24,7 @@ func webRegisterPost(w http.ResponseWriter, r *http.Request, _ httprouter.Params
var reg []byte
var err error
aTXT := ACMETxt{}
bdata, _ := ioutil.ReadAll(r.Body)
bdata, _ := io.ReadAll(r.Body)
if len(bdata) > 0 {
err = json.Unmarshal(bdata, &aTXT)
if err != nil {