stcn52 / fastdfs-client

Go Client For FastDFS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastdfs-client

Build Status GoDoc

go版的fastdfs客户端

Install

go get github.com/laoqiuChina/fastdfs-client

Usage

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)
}

Reference

协议参考
协议参考
nodejs客户端

About

Go Client For FastDFS


Languages

Language:Go 100.0%