delete replications, untested yet

This commit is contained in:
Chris Lu committed 2012-09-26 03:27:10 -07:00
1 parent b5c29e25aa
commit 4b3676a54b
3 files changed
+88 -57

No files matched your search

@@ -0,0 +1,14 @@
package operation
import (
"net/http"
)
func Delete(url string) error {
req, err := http.NewRequest("DELETE", url, nil)
if err != nil {
return err
}
_, err = http.DefaultClient.Do(req)
return err
}