<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yyzzz</author_name>
  <author_url>https://blog.hatena.ne.jp/yyzzz/</author_url>
  <blog_title>yyzzz’s diary</blog_title>
  <blog_url>https://yyzzz.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description># golangで詰まった点 golangの返り値の書き方には2種類ある。 一つ目は返り値の方のみ指定するパターン func GetTodo(id int) (Todo, error) {} 二つ目は同時に宣言する場合パターン func GetTodo(id int) (todo Todo, err error) {} 二つ目のパターンで宣言していると、関数内で同じ名前で宣言した場合に指摘が入る。 正: func GetTodo(id int) (todo Todo, err error) { Db.Find(&amp;todo, id) return todo, err } 誤: func GetT…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyyzzz.hatenadiary.com%2Fentry%2F2023%2F04%2F12%2F071706&quot; title=&quot;golangで詰まった点: todo redeclared in this block (compile) - yyzzz’s diary&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>2023-04-12 07:17:06</published>
  <title>golangで詰まった点: todo redeclared in this block (compile)</title>
  <type>rich</type>
  <url>https://yyzzz.hatenadiary.com/entry/2023/04/12/071706</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
