<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryu121</author_name>
  <author_url>https://blog.hatena.ne.jp/ryu121/</author_url>
  <blog_title>go言語入門学習サイト</blog_title>
  <blog_url>https://gopro1.hateblo.jp/</blog_url>
  <categories>
    <anon>go言語 関数</anon>
  </categories>
  <description>go言語は複数の戻り値を使った計算が関数でできます。 それについて解説します。【結論】 func calculate(a int, b int) (int, int) { sum := a + b diff := a - b return A, B }Goの関数は複数の値を返すことができます。これは、一回の関数呼び出しで複数の結果を出せます。 【理由】戻り値を二つ使うと複数の計算結果を出せます。func cal(x, y int) (int, int) { return (x / y), (x * y) }func main() { result := cal(数値、数値) fmt.Print…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgopro1.hateblo.jp%2Fentry%2F2023%2F07%2F21%2F121000&quot; title=&quot;戻り値を二つ使った関数の計算 - go言語入門学習サイト&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>https://www11.a8.net/0.gif?a8mat=3HG58D+GCVF0Q+3GWO+6DJW2</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-07-21 12:10:00</published>
  <title>戻り値を二つ使った関数の計算</title>
  <type>rich</type>
  <url>https://gopro1.hateblo.jp/entry/2023/07/21/121000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
