go版的fastdfs客户端
go get github.com/laoqiuChina/fastdfs-client
package main
import "github.com/laoqiuChina/fastdfs-client"
func main() {
client := fstdfs.New()
client.AddTracker("my.fastdfs.com:22122")
// upload file
file, _ := os.Open(fileName)
fileId := client.Upload(file,"jpg")
// download file
client.Download(fileId, os.Stdout)
}