"Resty"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 3개는 보이지 않습니다)
10번째 줄: 10번째 줄:
func main() {
func main() {
   client := resty.New()
   client := resty.New()
   resp, _ := client.R().Get("https://raw.githubusercontent.com/jmnote/test1/master/utf8test.txt")
   resp, _ := client.R().Get("https://raw.githubusercontent.com/jmnote/z-dataset/master/common/BOD.csv")
   fmt.Println(resp)
   fmt.Println(resp)
}
}
17번째 줄: 17번째 줄:
==같이 보기==
==같이 보기==
* [[Go 패키지 http]]
* [[Go 패키지 http]]
* [[Resty Get()]]


==참고==
==참고==

2021년 4월 14일 (수) 22:16 기준 최신판

1 개요[ | ]

Resty
  • 간단한 HTTP 및 REST 클라이언트 Go 라이브러리
  • inspired by Ruby rest-client
package main
import "fmt"
import "github.com/go-resty/resty/v2"
func main() {
  client := resty.New()
  resp, _ := client.R().Get("https://raw.githubusercontent.com/jmnote/z-dataset/master/common/BOD.csv")
  fmt.Println(resp)
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}