mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 01:26:43 +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
|
|
}
|