X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=json.go;h=b42ea1c43a2aa643a2e76b4b919099084939bf05;hb=ff8005cd81eda18fc9b0c6950c4a25000a7dff7e;hp=4cb295e840c5a7b153cb83890bc7be1ce4e13607;hpb=a138af795fb0ad0cece96ab5ded469f097397665;p=gocheese.git diff --git a/json.go b/json.go index 4cb295e..b42ea1c 100644 --- a/json.go +++ b/json.go @@ -1,6 +1,6 @@ /* GoCheese -- Python private package repository and caching proxy -Copyright (C) 2019-2022 Sergey Matveev +Copyright (C) 2019-2023 Sergey Matveev 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 @@ -20,7 +20,6 @@ package main import ( "bytes" "encoding/json" - "io/ioutil" "log" "net/http" "os" @@ -35,7 +34,7 @@ func getMD(pkgName, version string) (*PkgMeta, []*PkgReleaseInfo, error) { 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