I am new to golang I'm trying to implement an FTP client to get files from a server. I tried several packages like :"github.com/dutchcoders/goftp" but walk support was not working. Im currently trying with "github.com/jlaffaye/ftp" but cant seem to connect to the server.
I imported the package and Im simply using the following code to connect:
func main(){
ftp,err := Connect(address:port)
ftp.Login("user", "password")
if ftp.Code == 530 {
log.Println("Failed to Login")
}
log.Println("Successfully Connected to", ftp)
}
when i run it gives undefined: Connect
I am following the godocs for this package