/*
GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
import (
"bytes"
"encoding/json"
- "io/ioutil"
"log"
"net/http"
"os"
if err != nil {
return nil, nil, err
}
- md, err := ioutil.ReadFile(filepath.Join(Root, pkgName, MDFile))
+ md, err := os.ReadFile(filepath.Join(Root, pkgName, MDFile))
if err != nil {
if !os.IsNotExist(err) {
return nil, nil, err