Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 885 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 885 Bytes

fastdfs-client

Build Status GoDoc

go版的fastdfs客户端

Install

go get github.com/wodog/fastdfs-client

Usage

package main

import "github.com/wodog/fastdfs-client"

func main() {
  client := fstdfs.New()
	client.AddTracker("my.fastdfs.com:22122")

  // upload file
  file, _ := os.Open(fileName)
  fileId := client.Upload(file)

  // download file
  reader, err := client.Open(fileId)
}

Reference

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