From 1e4cd487aa9993c4cfec4392522f4c6c1329537c Mon Sep 17 00:00:00 2001 From: Boshi Lian Date: Wed, 28 Sep 2016 05:08:55 -0700 Subject: [PATCH] fix import path checking --- ssh/agent/client.go | 2 +- ssh/doc.go | 7 ++++++- ssh/terminal/util.go | 2 +- ssh/test/doc.go | 2 +- ssh/testdata/doc.go | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ssh/agent/client.go b/ssh/agent/client.go index ecfd7c58..b4748328 100644 --- a/ssh/agent/client.go +++ b/ssh/agent/client.go @@ -9,7 +9,7 @@ // // References: // [PROTOCOL.agent]: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.agent?rev=HEAD -package agent // import "golang.org/x/crypto/ssh/agent" +package agent import ( "bytes" diff --git a/ssh/doc.go b/ssh/doc.go index d6be8946..32cb4dd3 100644 --- a/ssh/doc.go +++ b/ssh/doc.go @@ -5,6 +5,11 @@ /* Package ssh implements an SSH client and server. +SSHPiper provides additional APIs to ssh that allows you to build a piped ssh connection. +Also, package ssh in sshpiper is compatible with golang.org/x/crypto/ssh. +All func and datatype left unchanged. You can use it like golang.org/x/crypto/ssh. + + SSH is a transport security protocol, an authentication protocol and a family of application protocols. The most typical application level protocol is a remote shell and this is specifically implemented. However, @@ -15,4 +20,4 @@ References: [PROTOCOL.certkeys]: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.certkeys?rev=HEAD [SSH-PARAMETERS]: http://www.iana.org/assignments/ssh-parameters/ssh-parameters.xml#ssh-parameters-1 */ -package ssh // import "golang.org/x/crypto/ssh" +package ssh diff --git a/ssh/terminal/util.go b/ssh/terminal/util.go index c869213e..7e60b31a 100644 --- a/ssh/terminal/util.go +++ b/ssh/terminal/util.go @@ -14,7 +14,7 @@ // panic(err) // } // defer terminal.Restore(0, oldState) -package terminal // import "golang.org/x/crypto/ssh/terminal" +package terminal import ( "io" diff --git a/ssh/test/doc.go b/ssh/test/doc.go index 3f9b3346..29ad65e9 100644 --- a/ssh/test/doc.go +++ b/ssh/test/doc.go @@ -4,4 +4,4 @@ // This package contains integration tests for the // golang.org/x/crypto/ssh package. -package test // import "golang.org/x/crypto/ssh/test" +package test diff --git a/ssh/testdata/doc.go b/ssh/testdata/doc.go index fcae47ca..ae7bd8b8 100644 --- a/ssh/testdata/doc.go +++ b/ssh/testdata/doc.go @@ -5,4 +5,4 @@ // This package contains test data shared between the various subpackages of // the golang.org/x/crypto/ssh package. Under no circumstance should // this data be used for production code. -package testdata // import "golang.org/x/crypto/ssh/testdata" +package testdata