Skip to content

smira/go-ftp-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-ftp-protocol

Plugin for http.Transport with support for ftp:// protocol in Go.

Limitations: only anonymous FTP servers, only file retrieval operations.

Internally connections to FTP servers are cached and re-used when possible.

Example usage:

import "github.com/smira/go-ftp-protocol/protocol"

transport := &http.Transport{}
transport.RegisterProtocol("ftp", &protocol.FTPRoundTripper{})

client := &http.Client{Transport: transport}

resp, err := client.Get("ftp://ftp.ru.debian.org/debian/README")

License: MIT

Base on FTP client library: http://github.com/jlaffaye/ftp/

About

Plugin for http.Transport with support for ftp:// protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages