Update helper.go

This commit is contained in:
Daniel Hougaard
2024-06-18 14:03:16 +02:00
parent 2675aa6969
commit d26521be0b

View File

@@ -5,7 +5,6 @@ import (
"crypto/sha256"
"encoding/base64"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
@@ -249,7 +248,7 @@ func AppendAPIEndpoint(address string) string {
}
func ReadFileAsString(filePath string) (string, error) {
fileBytes, err := ioutil.ReadFile(filePath)
fileBytes, err := os.ReadFile(filePath)
if err != nil {
return "", err