]> Sergey Matveev's repositories - sgblog.git/blobdiff - cmd/sgblog/main.go
io/ioutil is deprecated since Go 1.16
[sgblog.git] / cmd / sgblog / main.go
index 7ee4e723f2c3d4ec081aca28b2aa334483420fe2..767850c4b26d6ea8ce4b0b5d2d9d8990c5417582 100644 (file)
@@ -23,8 +23,8 @@ import (
        "encoding/json"
        "flag"
        "fmt"
-       "io/ioutil"
        "log"
+       "os"
        "regexp"
        "strings"
 
@@ -126,7 +126,7 @@ func initRepo(cfg *Cfg) (*plumbing.Hash, error) {
 }
 
 func readCfg(cfgPath string) (*Cfg, error) {
-       cfgRaw, err := ioutil.ReadFile(cfgPath)
+       cfgRaw, err := os.ReadFile(cfgPath)
        if err != nil {
                return nil, err
        }