{"height":"190","type":"rich","author_url":"https://blog.hatena.ne.jp/hiroyukim/","url":"https://hiroyukim.hatenablog.com/entry/2019/06/17/153737","provider_name":"Hatena Blog","author_name":"hiroyukim","title":"go\u306emake\u3067\u8d77\u3053\u308a\u304c\u3061\u306a\u60b2\u5287","description":"go\u306emake\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u7b2c\uff13\u5f15\u6570\u3092\u3042\u3093\u307e\u308a\u4f7f\u308f\u306a\u3044\u304b\u3089 \u3053\u308c\u6319\u52d5\u306a\u3093\u3060\u3063\u305f\u3063\u3051\u3068\u306a\u308b\u306e\u3067\u30e1\u30e2\u3059\u308b https://golang.org/pkg/builtin/ make(len:0)\u306b\u3088\u308bslice\u4f5c\u6210 \u3088\u304f\u3042\u308b\u3084\u3064 \u60f3\u50cf\u901a\u308a\u306e\u7d50\u679c // cap: 0 v := make([]string, 0) pp.Print(v) fmt.Printf(\"len:%d,cap:%d\\n\", len(v), cap(v)) v = append(v, \"hello\") pp.Print(v) fmt.Printf(\"len:%d,cap:%d\\n\", len(v), cap(v)) \u7d50\u679c []str\u2026","width":"100%","image_url":null,"provider_url":"https://hatena.blog","published":"2019-06-17 15:37:37","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiroyukim.hatenablog.com%2Fentry%2F2019%2F06%2F17%2F153737\" title=\"go\u306emake\u3067\u8d77\u3053\u308a\u304c\u3061\u306a\u60b2\u5287 - \u96d1\u306a\u30e1\u30e2\u66f8\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","blog_url":"https://hiroyukim.hatenablog.com/","blog_title":"\u96d1\u306a\u30e1\u30e2\u66f8\u304d","categories":[]}