2022-01-02から1日間の記事一覧
package main import ( "context" "net/http" "time" ) func main() { ctx := context.Background() ctx, cancel := context.WithCancel(ctx) req, _ := http.NewRequestWithContext(ctx, "GET", "http://httpbin.org/delay/3", nil) // it will return late…