WebDAV
This sample is about to build a webdav service based on beego.
Installation
cd $GOPATH/src/samples/WebDAV
go get golang.org/x/net/webdav
go install
cp $GOPATH/bin/WebDAV ./
./WebDAV
Usage
curl 'http://127.0.0.1:8080/test.txt'
curl -X MKCOL 'http://127.0.0.1:8080/test/'
curl -T '{localfile}' 'http://127.0.0.1:8080/test/'
curl -X DELETE 'http://127.0.0.1:8080/test/'