first working version
this version search for
os.TempDir
os.MkdirTemp
ioutil.TempDir
on golang test and suggests to use the equivalent TempDir()
from testing package, like https://pkg.go.dev/testing#T.TempDir
TempDir returns a temporary directory for the test to use. The directory is automatically removed when the test and all its subtests complete. Each subsequent call to t.TempDir returns a unique directory; if the directory creation fails, TempDir terminates the test by calling Fatal.
this is much more robust and we don't need to care about remove things after the test