Versions in this module Expand all Collapse all v1 v1.0.0 Jul 27, 2021 Changes in this version + type Conn struct + func Dial(network, addr string) (conn *Conn, code int, message string, err error) + func DialTimeout(network, addr string, timeout time.Duration) (conn *Conn, code int, message string, err error) + func NewConn(nconn io.ReadWriteCloser) (conn *Conn, code int, message string, err error) + func (c *Conn) AuthSSL(mode string) (code int, message string, err error) + func (c *Conn) Close() error + func (c *Conn) Cmd(expectCode int, format string, args ...interface{}) (code int, message string, err error) + func (c *Conn) Cwd(dir string) (code int, message string, err error) + func (c *Conn) List(dir string, dconn net.Conn) (dirList []string, code int, message string, err error) + func (c *Conn) Login(user, pass string) (code int, message string, err error) + func (c *Conn) NameList(dir string, dconn net.Conn) (dirList []string, code int, message string, err error) + func (c *Conn) Passive() (addr string, code int, message string, err error) + func (c *Conn) Quit() (code int, message string, err error) + func (c *Conn) Rest(size int64) (code int, message string, err error) + func (c *Conn) Retrieve(fname string, dconn net.Conn) (contents []byte, code int, message string, err error) + func (c *Conn) RetrieveTo(fname string, dconn net.Conn, w io.Writer) (written int64, code int, message string, err error) + func (c *Conn) Size(fname string) (size int64, code int, message string, err error) + func (c *Conn) SwitchTo(nconn io.ReadWriteCloser) + func (c *Conn) Type(mode string) (code int, message string, err error) + func (c *Conn) Upload(fname string, dconn net.Conn, contents []byte) (written int64, code int, message string, err error) + func (c *Conn) UploadFrom(fname string, dconn net.Conn, r io.Reader) (written int64, code int, message string, err error)