{"author_name":"bouzuya","published":"2021-09-02 20:17:05","categories":[],"width":"100%","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2021%2F09%2F02%2F201705\" title=\"\u4f53\u8abf\u304c\u60aa\u3044 - bouzuya.hatenablog.com\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://bouzuya.hatenablog.com/","title":"\u4f53\u8abf\u304c\u60aa\u3044","type":"rich","author_url":"https://blog.hatena.ne.jp/bouzuya/","description":"\u4f53\u8abf\u304c\u60aa\u3044\u306e\u3067\u65e9\u3081\u306b\u5bdd\u308b\u3002 \u80b2\u5150\u3002\u4e0b\u306e\u5b50\u304c\u3072\u3068\u308a\u3067\u5ea7\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002 golang \u3067 *int \u306e\u3088\u3046\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u521d\u671f\u5316\u306b\u5909\u6570\u3092\u8981\u6c42\u3055\u308c\u308b\u306e\u304c\u9762\u5012\u3060\u3002 package main import ( \"fmt\" ) type S struct { f *int } func main() { v := 123 s := S{ // f: &123, // \u3053\u3046\u306f\u66f8\u3051\u306a\u3044 // f: &[]int{123}[0], // \u3053\u3046\u306f\u66f8\u3051\u308b\u3051\u3069\u2026\u2026 f: &v, // \u3060\u3044\u305f\u3044\u3053\u3046\u66f8\u304f } fmt.Printf(\"%v\\n\", s) } https://twitter.com/hogedigo/st\u2026","url":"https://bouzuya.hatenablog.com/entry/2021/09/02/201705","provider_name":"Hatena Blog","version":"1.0","blog_title":"bouzuya.hatenablog.com"}