I need to write to the Windows Registry via Go, but am unable to find the mechanism to do so.
I have found that https://github.com/lxn/go-winapi provides read-only access to the Registry in the advapi32.go file. I have filed a bug report requesting the ability to write to the Registry as well so it makes it into a wishlist or tasklist for someone in the future.
I think that this ability may not even exist in an existing Go library and that it needs to be created. On the chance that it already exists, I'm asking here. If it doesn't exist but you are interested in enhancing go-winapi or another similar library, please do. Or if you know the mechanics behind writing to the registry, sharing that information so that I (or someone else) can work that into a patch for the go-winapi library would certainly be appreciated.
If nothing else, I'll come back here to answer this (if no one else does) if I'm able to get this added to go-winapi or a similar library myself.