{"url":"https://blog.utgw.net/entry/2023/10/03/232644","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2023%2F10%2F03%2F232644\" title=\"mockgen\u306ereflect mode\u3067\u578b\u5f15\u6570\u3092\u53d6\u308b\u578b\u3092\u8fd4\u3059\u30e1\u30bd\u30c3\u30c9\u306e\u3042\u308binterface\u306e\u30e2\u30c3\u30af\u3092\u751f\u6210\u3067\u304d\u306a\u3044 - \u79c1\u304c\u6b4c\u5ddd\u3067\u3059\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/utgwkk/","categories":["\u6280\u8853","Go"],"title":"mockgen\u306ereflect mode\u3067\u578b\u5f15\u6570\u3092\u53d6\u308b\u578b\u3092\u8fd4\u3059\u30e1\u30bd\u30c3\u30c9\u306e\u3042\u308binterface\u306e\u30e2\u30c3\u30af\u3092\u751f\u6210\u3067\u304d\u306a\u3044","height":"190","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"\u8868\u984c\u304c\u5168\u3066\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b I interface\u306e\u30e2\u30c3\u30af\u3092mockgen\u306ereflect mode\u3067\u751f\u6210\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002 package generic import ( \"go.uber.org/mock/sample/imp1\" ) type V[T any] map[string]T type I interface { X() V[imp1.Imp1] } \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u3088\u304f\u898b\u308b\u3068\u3001X \u30e1\u30bd\u30c3\u30c9\u306e\u8fd4\u308a\u5024\u306e\u578b\u304c generic.V[imp1.Imp1] \u3067\u306f\u306a\u304f generic.V[go.uber.org/mock/sample/imp1.Imp1] \u3068\u2026","published":"2023-10-03 23:26:44","image_url":null,"blog_url":"https://blog.utgw.net/","version":"1.0","author_name":"utgwkk","type":"rich","blog_title":"\u79c1\u304c\u6b4c\u5ddd\u3067\u3059","width":"100%"}