X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=blobdiff_plain;f=src%2Fctx.go;h=6232972d47a28cd6d77b5ebea6b359026b7327e2;hp=cb1f1f4109ce443aed8ed148f99e5295694cdd34;hb=beefc4fd7137435caf9c653633ab938947df07f8;hpb=7243c73e65e260476dc6ddb900b2d3367583aebc diff --git a/src/ctx.go b/src/ctx.go index cb1f1f4..6232972 100644 --- a/src/ctx.go +++ b/src/ctx.go @@ -20,7 +20,6 @@ package nncp import ( "errors" "fmt" - "io/ioutil" "os" "path/filepath" "strconv" @@ -119,7 +118,7 @@ func CtxFromCmdline( return nil, err } } else { - cfgRaw, err := ioutil.ReadFile(cfgPath) + cfgRaw, err := os.ReadFile(cfgPath) if err != nil { return nil, err }