<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiroyukim</author_name>
  <author_url>https://blog.hatena.ne.jp/hiroyukim/</author_url>
  <blog_title>雑なメモ書き</blog_title>
  <blog_url>https://hiroyukim.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>goのmakeを使っていると第３引数をあんまり使わないから これ挙動なんだったっけとなるのでメモする https://golang.org/pkg/builtin/ make(len:0)によるslice作成 よくあるやつ 想像通りの結果 // cap: 0 v := make([]string, 0) pp.Print(v) fmt.Printf(&quot;len:%d,cap:%d\n&quot;, len(v), cap(v)) v = append(v, &quot;hello&quot;) pp.Print(v) fmt.Printf(&quot;len:%d,cap:%d\n&quot;, len(v), cap(v)) 結果 []str…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiroyukim.hatenablog.com%2Fentry%2F2019%2F06%2F17%2F153737&quot; title=&quot;goのmakeで起こりがちな悲劇 - 雑なメモ書き&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-17 15:37:37</published>
  <title>goのmakeで起こりがちな悲劇</title>
  <type>rich</type>
  <url>https://hiroyukim.hatenablog.com/entry/2019/06/17/153737</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
