1
0
Fork 0
forked from External/ergo

upgrade go to 1.16

Fixes #1510
This commit is contained in:
Shivaram Lingamneni 2021-02-17 15:11:54 -05:00
parent dc4214a8ca
commit 430b40fc2f
10 changed files with 18 additions and 21 deletions

View file

@ -10,7 +10,7 @@ import (
"encoding/pem"
"errors"
"fmt"
"io/ioutil"
"os"
"time"
"github.com/dgrijalva/jwt-go"
@ -34,7 +34,7 @@ func (t *JwtServiceConfig) Postprocess() (err error) {
t.secretBytes = []byte(t.Secret)
t.Secret = ""
if t.RSAPrivateKeyFile != "" {
keyBytes, err := ioutil.ReadFile(t.RSAPrivateKeyFile)
keyBytes, err := os.ReadFile(t.RSAPrivateKeyFile)
if err != nil {
return err
}