<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fuktommy</author_name>
  <author_url>https://blog.hatena.ne.jp/fuktommy/</author_url>
  <blog_title>/(&quot; - ' ;)\</blog_title>
  <blog_url>https://fuktommy.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>手癖でGoを書いてて最近やっと気付いたんだけどスタイルが2種類あるんだなと。いやGoに限らないけども。 インタフェースの都合で引数が決まってくるときに残りの引数をどうやって渡すかというのがあって オブジェクトのプロパティとメソッドで役割分担をすると // controller.go type controller struct { conf Config } func (con *controller) FooHandler(c *gin.Context) { c.JSON(200, gin.H{&quot;foo&quot;: con.conf.foo}) } // router.go con := contr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffuktommy.hatenablog.com%2Fentry%2F2022%2F08%2F10%2F075040&quot; title=&quot;インタフェースの都合で引数が決まってくるときに残りの引数をどうやって渡すか - /(&amp;quot; - &amp;#39; ;)\&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://m.media-amazon.com/images/I/51UoREcNrnL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-10 07:50:40</published>
  <title>インタフェースの都合で引数が決まってくるときに残りの引数をどうやって渡すか</title>
  <type>rich</type>
  <url>https://fuktommy.hatenablog.com/entry/2022/08/10/075040</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
