편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
38번째 줄: | 38번째 줄: | ||
"bytes" | "bytes" | ||
"fmt" | "fmt" | ||
" | "http" | ||
"moul.io/http2curl" | "moul.io/http2curl" | ||
50번째 줄: | 50번째 줄: | ||
command, _ := http2curl.GetCurlCommand(req) | command, _ := http2curl.GetCurlCommand(req) | ||
fmt.Println(command) | fmt.Println(command) | ||
// curl -X PUT -d "{\"hello\":\"world\",\"answer\":42}" -H "Content-Type: application/json" http://www.example.com/abc/def.ghi?jlk=mno&pqr=stu | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
58번째 줄: | 59번째 줄: | ||
==참고== | ==참고== | ||
* https://github.com/moul/http2curl | * https://github.com/moul/http2curl | ||
[[분류: Go]] | [[분류: Go]] |