mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-23 18:16:01 +00:00
14 lines
195 B
Go
14 lines
195 B
Go
package getter
|
|
|
|
import (
|
|
"io/ioutil"
|
|
)
|
|
|
|
func tmpFile(dir, pattern string) (string, error) {
|
|
f, err := ioutil.TempFile(dir, pattern)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return f.Name(), nil
|
|
}
|