- 使用 go module
PS C:\Users\admin\go\src\test> go mod init
go: creating new go.mod: module test
- 安装 ftp 服务器
PS C:\Users\admin\go\src\test> go install github.com/goftp/server/exampleftpd
go: finding module for package github.com/goftp/server/exampleftpd
go: found github.com/goftp/server/exampleftpd in github.com/goftp/server v0.0.0-20200708154336-f64f7c2d8a42
go: finding module for package github.com/goftp/file-driver
go: found github.com/goftp/file-driver in github.com/goftp/file-driver v0.0.0-20180502053751-5d604a0fc0c9
- 启动 ftp 服务器