Skip to content

Commit f1cf2b0

Browse files
author
Sam Mulube
committed
Update doc.go with correct examples
1 parent ec11bf2 commit f1cf2b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: doc.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Advanced Example:
4444
}
4545
return resp
4646
},
47-
WithHeader(
47+
simular.WithHeader(
4848
&http.Header{
4949
"Api-Key": []string{"1234abcd"},
5050
},
@@ -71,12 +71,12 @@ Advanced Example:
7171
}
7272
return resp, nil
7373
},
74-
WithHeader(
74+
simular.WithHeader(
7575
&http.Header{
7676
"Api-Key": []string{"1234abcd"},
7777
},
7878
),
79-
WithBody(
79+
simular.WithBody(
8080
bytes.NewBufferString(`{"title":"article"}`),
8181
),
8282
),

0 commit comments

Comments
 (0)