mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Add stability-tests * Fix requires * Fix golint errors * Update README.md * Remove payloadHash from everywhere * don't run vet on kaspad in stability-tests/install_and_test
10 lines
265 B
Go
10 lines
265 B
Go
package common
|
|
|
|
import "io/ioutil"
|
|
|
|
// TempDir returns a temporary directory with the given pattern, prefixed with STABILITY_TEMP_DIR_
|
|
func TempDir(pattern string) (string, error) {
|
|
const prefix = "STABILITY_TEMP_DIR_"
|
|
return ioutil.TempDir("", prefix+pattern)
|
|
}
|