mirror of
https://github.com/dragonheim/gagent.git
synced 2025-05-24 12:16:47 -07:00
fix: Replaced ioutil as it was deprecated in Golang.
This commit is contained in:
parent
82a964fc50
commit
97c8af8816
18 changed files with 105 additions and 114 deletions
|
@ -1,9 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
os "os"
|
||||
testing "testing"
|
||||
|
||||
// main "github.com/dragonheim/gagent/cmd/gagent"
|
||||
gstructs "github.com/dragonheim/gagent/internal/gstructs"
|
||||
|
@ -11,7 +10,7 @@ import (
|
|||
|
||||
// This function will create a temporary config file for testing purposes
|
||||
func createTestConfigFile() (string, error) {
|
||||
tmpfile, err := ioutil.TempFile("", "test_config_*.hcl")
|
||||
tmpfile, err := os.CreateTemp("", "test_config_*.hcl")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue