Go http.Get()

Jmnote (토론 | 기여)님의 2021년 4월 5일 (월) 18:00 판 (→‎개요)

1 개요

Go http.Get()
package main
import "fmt"
import "net/http"
import "io/ioutil"
func main() {
    resp, _ := http.Get("https://raw.githubusercontent.com/jmnote/test1/master/utf8test.txt")
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Print(string(body))
}

2 같이 보기

3 참고

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