tmpdir returns a path to a temporary directory.
()
| 23 | |
| 24 | // tmpdir returns a path to a temporary directory. |
| 25 | func tmpdir() string { |
| 26 | tmpdir := os.Getenv("TMPDIR") |
| 27 | if tmpdir == "" { |
| 28 | tmpdir = "/var/tmp" |
| 29 | } |
| 30 | |
| 31 | return tmpdir |
| 32 | } |
| 33 | |
| 34 | // RuntimeOptions allow for creating a customized Runtime. |
| 35 | type RuntimeOptions struct { |
no outgoing calls
searching dependent graphs…