Working with the registry, devices, winapi, etc. Is it implemented and how is this language suitable for such tasks?
1 answer
Everything can be done. You only need a strapping for api. You can either write it yourself, or take it ready - for example, AllenDang / w32 . There really is not all win, but after all, no one bothers to add for the necessary - there is not difficult. With the registry work through winapi and in the above library is in advapi .
Working with devices is more difficult. Devices are different and not quite just so you can work. And even more so to write a universal library for them. But with many it is quite possible. For example, a banal old question, how to work with a COM port. And just like in other languages - open as a file and read.
But whether GO is suitable for this is a difficult question. For professionals, in principle, sideways on what to write. But as for me, working with api is more all the same to the usual c / c ++ - there is more documentation and examples. And on the GO, it is necessary to constantly build upon how not to build a vrapper, so to understand exactly how to correctly forward the structures.