in memory? My use case is to generate a go file in memory and then use os.Exec to run go build on it.
But I don't want to write this file out to the disk. I want to keep it in memory.
Is there anyway to achieve this? Please advise
Afero didn’t work for me. I am using tmpfs for now. Please advise if there’s a better method. It has to be platform independent to work for my use case.
Обсуждают сегодня