{"author_url":"https://blog.hatena.ne.jp/ema_hiro/","provider_name":"Hatena Blog","description":"Summary golang\u306ehttp\u306emocking package\u3067\u3042\u308b httpmock \u3067 fmt package\u3092\u4f7f\u3063\u3066string\u578b\u306b\u5909\u63db\u3057\u305f\u3068\u304d\u306b\u30cf\u30de\u3063\u305f\u8a71\u3092\u66f8\u304d\u307e\u3059\u3002 httpmock package\u306f\u3053\u3061\u3089 github.com How to Use var resJson = ` { \"id\": 1, \"name\": \"taro\" } ` func TestHttpMock(t *testing.T){ RegisterResponder(\"GET\", \"https://sample.com/users/1\", httpmock.NewStringResponder(200\u2026","author_name":"ema_hiro","categories":["Go"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2018%2F02%2F14%2F041904\" title=\"Use httpmock with fmt - emahiro/b.log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"emahiro/b.log","provider_url":"https://hatena.blog","width":"100%","blog_url":"https://ema-hiro.hatenablog.com/","published":"2018-02-14 04:19:04","version":"1.0","height":"190","image_url":null,"title":"Use httpmock with fmt","type":"rich","url":"https://ema-hiro.hatenablog.com/entry/2018/02/14/041904"}