package main import ( "log" "golang.org/x/crypto/ssh" ) type SSHConnection struct { client *ssh.Client } func (s *SSHConnection) Close() error { if s.client != nil { log.Println("DEBUG: Closing SSH client connection.") return s.client.Close() } return nil }