Merge pull request #240 from max-schaefer/fix-frontend-errors

Fix frontend errors
This commit is contained in:
Max Schaefer
2020-07-02 10:14:39 +01:00
committed by GitHub
3 changed files with 4 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ package ssh
import (
io "io"
net "net"
time "time"
)
@@ -39,7 +40,7 @@ type Config struct {
func (_ *Config) SetDefaults() {}
type HostKeyCallback func(string, Addr, PublicKey) error
type HostKeyCallback func(string, net.Addr, PublicKey) error
func InsecureIgnoreHostKey() HostKeyCallback {
return nil

View File

@@ -1,4 +1,4 @@
| depth.go:22:1:25:1 | function declaration | 1 |
| depth.go:22:1:25:1 | function declaration | 0 |
| main.go:5:1:5:30 | function declaration | 0 |
| main.go:7:1:9:1 | function declaration | 2 |
| main.go:11:1:11:14 | function declaration | 0 |

View File

@@ -19,7 +19,7 @@ type d struct {
f string
}
func test2() int {
func test2() {
x := a{b{0}, c{d{"hi"}}}
fmt.Printf("%v", x.f) // prints `0`, not `"hi"`
}