Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How do I mount a raw disk image programatically via GoLang?

I have a raw disk image with extension ".dd". I am hoping to mount it as a readonly device. I have tried looking into following packages: 1. syscall 2. golang.org/x/sys/unix/mount

But none of them had a function for mounting. Although, it's given in their documentation when I try to compile my code it says that said function does NOT exist.

Maybe, I'm doing something wrong here. Please help.

Thanks!

Comments