w32 is a wrapper of windows apis for the Go Programming Language.
It wraps win32 apis to "Go style" to make them easier to use.
Work in progress! Pull requests are welcome!
API of this package can be changed till 1.0.0 version will be released!
This library was originally a clone of JamesHovious/w32.
This library aims to mirror the win32 api and other Windows system dlls, without additional abstractions built on top of it. It attempts to be as organized/documented as possible.
This mirror has some of my own additions plus updates from other forks of the original project. I've attempted to document where I've pulled code from someone else.
I add new API functions in if my current project needs them. If your project needs a particular function please submit a PR or issue. I also add in additional functions as I see other forks, or Go libraries that have them.
package main
import (
"github.com/riftbit/w32"
)
func main() {
w32.MessageBox(0, "Hello World!", "Hello, World!", 0)
}
For more examples, look at the example folder.
- Install Go.
- Get a GCC compiler. I recommend the WinBuilds version.
- From the command line, type
go get github.com/riftbit/w32
- Create a new file, and try the example above.
Contributions in form of design, code, documentation, bug reporting or other ways you see fit are very welcome.
Thank You!