/win

Windows API/constants, identity, and WinHTTP/WinINet for Go.

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Win

Yum

Go Report Card License

What is this?

This Go module started as a simple "drop-in" replacement of net/http so that you can use WinHTTP and WinINet on Windows for better support for proxying and NTLM authentication. Microsoft recommends WinINet over WinHTTP unless you're writing a Windows service.

If you want to use a minimal, cross-plaform HTTP client, I recommend inet which uses this module behind the scenes.

This module has been expanded to also include multiple Windows API functions and constants. There are nested modules for converting Go/Windows types, debugging DLLs, and user identity management.

How to install

Open a terminal and run the following:

$ go get --ldflags "-s -w" --trimpath -u github.com/mjwhitta/win

Usage

See each nested module's README for usage examples.

Links

TODO

  • WinINet
    • FTP client