MCPcopy Index your code
hub / github.com/labstack/echo / doGet

Function doGet

server_test.go:66–78  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

64}
65
66func doGet(url string) (int, string, error) {
67 resp, err := http.Get(url)
68 if err != nil {
69 return 0, "", err
70 }
71
72 defer resp.Body.Close()
73 body, err := io.ReadAll(resp.Body)
74 if err != nil {
75 return resp.StatusCode, "", err
76 }
77 return resp.StatusCode, string(body), nil
78}
79
80func TestStartConfig_Start(t *testing.T) {
81 e := New()

Calls 2

GetMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…