Implemented running executables in memory
All checks were successful
/ test (push) Successful in 16s

This commit is contained in:
Eduard Urbach 2025-07-06 20:02:28 +02:00
parent e5aa006623
commit a7fd4172b9
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
10 changed files with 183 additions and 42 deletions

20
src/memfile/New_other.go Normal file
View file

@ -0,0 +1,20 @@
//go:build !linux
package memfile
import (
"os"
"git.urbach.dev/cli/q/src/global"
)
// New creates a new anonymous in-memory file.
func New(name string) (*os.File, error) {
pattern := ""
if global.OS == "windows" {
pattern = "*.exe"
}
return os.CreateTemp("", pattern)
}