MCPcopy Create free account
hub / github.com/DoNewsCode/core / Example

Function Example

clihttp/example_test.go:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func Example() {
10 client := NewClient(opentracing.GlobalTracer())
11 req, _ := http.NewRequest("GET", "https://example.com/", nil)
12 resp, _ := client.Do(req)
13 resp.Body.Close()
14}

Callers

nothing calls this directly

Calls 3

DoMethod · 0.95
NewClientFunction · 0.85
CloseMethod · 0.80

Tested by

no test coverage detected