I am new to golang and am trying to connect to a server via ftp server using golang. But as the server requires me to enter in passive mode for me to connect with it. Could anyone please tell me how I can do that?
If you are using goftp library, set activetranfers to false
config := goftp.Config{}
config.User = userLL
config.Password = passwordLL
config.ActiveTransfers = false
client, err := goftp.DialConfig(config, hostLL)
if err != nil {
fmt.Println(err)
}