<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gsf_zero1</author_name>
  <author_url>https://blog.hatena.ne.jp/gsf_zero1/</author_url>
  <blog_title>いろいろ備忘録日記</blog_title>
  <blog_url>https://devlights.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>概要 サンプル おすすめ書籍 概要 知らなかったので、忘れないうちにメモメモ。 Go で、fmt.Printf とかするときに x := 1 fmt.Printf(&quot;%d(%T)\n&quot;, x, x) という様に同じパラメータを複数回使いたいときに、今まで上のようにやってたんですが golang.org をみてたら、Explicit argument indexes ってのがありました。 以下のように指定できたんですね x := 1 fmt.Printf(&quot;%d(%[1]T)\n&quot;, x) PythonとかC#だと、もう少しいい感じに &gt;&gt;&gt; x = 1 &gt;&gt;&gt; print(f&quot;{x}({typ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F2020%2F08%2F18%2F014703&quot; title=&quot;Goメモ-102 (Explicit argument indexes, Printfで同じパラメータを使い回す) - いろいろ備忘録日記&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/41meaSLNFfL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-18 01:47:03</published>
  <title>Goメモ-102 (Explicit argument indexes, Printfで同じパラメータを使い回す)</title>
  <type>rich</type>
  <url>https://devlights.hatenablog.com/entry/2020/08/18/014703</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
