Don’t use dot imports for the syscall and unsafe packages

Besides that using dot imports isn’t really idiomatic Go, in this case it actually breaks when using Go 1.11

Go 1.11 introduces a new `Pointer` type to the `syscall` package: And since the `unsafe` package also contains a `Pointer` type, this now gives an error: `-: Pointer redeclared in this block`

Not using dot imports for these packages solves that problem.
1 file changed
tree: ad85d0c179fd345cf2e424f92f3ab6ae68b983c9
  1. .gitignore
  4. pageant_windows.go
  5. sshagent.go
  6. sshagent_windows.go


Create a new agent.Agent on any type of OS (so including Windows) from any Go application.


When compiled for Windows, it will only support Pageant as the SSH authentication agent.


Big thanks to Давид Мзареулян (David Mzareulyan) for creating the go-pageant package!


If you have an issue: report it on the issue tracker


Sander van Harmelen (


The files pageant_windows.go and sshagent_windows.go have their own license (see file headers). The rest of this package is licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at