{"blog_title":"go\u8a00\u8a9e\u5165\u9580\u5b66\u7fd2\u30b5\u30a4\u30c8","provider_url":"https://hatena.blog","image_url":"https://www11.a8.net/0.gif?a8mat=3HG58D+GCVF0Q+3GWO+6DJW2","title":"\u3010\u95a2\u6570\u3011return\u306b\u4f55\u3082\u66f8\u304b\u305a\u623b\u308a\u5024\u3092\u8fd4\u3059","provider_name":"Hatena Blog","categories":["go\u8a00\u8a9e \u95a2\u6570"],"author_name":"ryu121","description":"go\u8a00\u8a9e\u306f\u623b\u308a\u5024\u306b\u540d\u524d\u3092\u4ed8\u3051\u308b\u3068\u6700\u521d\u3067\u5b9a\u7fa9\u3057\u305f\u5909\u6570\u540d\u3068\u3057\u3066\u4f7f\u308f\u308c\u30ea\u30bf\u30fc\u30f3\u306b\u4f55\u3082\u66f8\u304b\u305a\u306b\u623b\u305b\u307e\u3059\u3002 \u3010\u7d50\u8ad6\u3011func \u95a2\u6570\u540d(\u5f15\u6570) \u623b\u308a\u5024\u306e\u578b { \u623b\u308a\u5024\u306e\u540d\u524d\u3092\u4ed8\u3051\u305f\u5909\u6570\u306e\u51e6\u7406 return } \u3010\u7406\u7531\u3011go\u8a00\u8a9e\u3067\u306f\u540d\u524d\u3092\u5909\u6570\u3092\u4f7f\u3046\u3068return\u306b\u4f55\u3082\u66f8\u304b\u305a\u306b\u623b\u305b\u307e\u3059\u3002 \u3053\u306e\u4e8b\u3092naked return\u3068\u547c\u3073\u307e\u3059\u3002\u3010\u5177\u4f53\u4f8b\u3011 import \"fmt\"func split(sum int) (x, y int) { x = sum * 4 / 9 y = sum - x return }func main() { fmt.Println(split(17) } 2.go:4:1: expect\u2026","width":"100%","published":"2023-10-09 13:08:48","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgopro1.hateblo.jp%2Fentry%2F2023%2F10%2F09%2F130848\" title=\"\u3010\u95a2\u6570\u3011return\u306b\u4f55\u3082\u66f8\u304b\u305a\u623b\u308a\u5024\u3092\u8fd4\u3059 - go\u8a00\u8a9e\u5165\u9580\u5b66\u7fd2\u30b5\u30a4\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","author_url":"https://blog.hatena.ne.jp/ryu121/","url":"https://gopro1.hateblo.jp/entry/2023/10/09/130848","type":"rich","blog_url":"https://gopro1.hateblo.jp/"}