go-winapi is a Windows API wrapper package for Go.
Originally part of walk, it is now a separate project.
-
Make sure you have a working Go installation.
The easiest option for building Go programs on Windows is to use a stable pre-built Go release.
Because Go is still changing rapidly, you may prefer to use a weekly Go snapshot instead. The unofficial Go Wiki has some guides for building on Windows and cross-compiling.
The official Getting Started guide, while not focused on Windows, is a recommended read for developers new to Go.
-
Either run
goinstall github.com/lxn/go-winapi
and import the package like this:import "github.com/lxn/go-winapi"
Or run
git clone http://github.com/lxn/go-winapi.git
andcd go-winapi && gomake install
and import the package like this:import "winapi"