commit | 952edcbe7aa672a766209dfb02b043b8167d5d61 | [log] [tgz] |
---|---|---|
author | Sander van Harmelen <sander@xanzy.io> | Tue Jul 03 18:15:16 2018 |
committer | Sander van Harmelen <sander@xanzy.io> | Tue Jul 03 18:15:16 2018 |
tree | ad85d0c179fd345cf2e424f92f3ab6ae68b983c9 | |
parent | ba9c9e33906f58169366275e3450db66139a31a9 [diff] |
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: https://golang.org/cl/106275 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.
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 (sander@xanzy.io)
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 http://www.apache.org/licenses/LICENSE-2.0