12345678910111213141516 |
- package main
- import (
- "log"
- "net/http"
- )
- // Simple HTTP PUT convinience function
- func put(url string) (resp *http.Response, err error) {
- req, err := http.NewRequest("PUT", url, nil)
- if err != nil {
- log.Print(err)
- return
- }
- return http.DefaultClient.Do(req)
- }
|