<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kabochapo</author_name>
  <author_url>https://blog.hatena.ne.jp/kabochapo/</author_url>
  <blog_title>のんびり精進</blog_title>
  <blog_url>https://kabochapo.hateblo.jp/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>下記のようなコードが期待通りの結果にならないというのを先日 Twitter で見ました。 そのツイートのままではありませんが似たコードです。 問題のコード func main() { s := []string{&quot;0&quot;, &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;} fmt.Println(s) // [0 1 2 3 4] s2 := append(s[:2], s[3:]...) // 二番目の要素を削除 fmt.Println(s2) // [0 1 3 4] fmt.Println(s) // 元のスライス [0 1 3 4 4] } 先頭を「0番目」と呼ぶとすると、s2 の2番目の要素が削…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkabochapo.hateblo.jp%2Fentry%2F2020%2F05%2F16%2F000450&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-16 00:04:50</published>
  <title>Goのスライスの性質を再確認</title>
  <type>rich</type>
  <url>https://kabochapo.hateblo.jp/entry/2020/05/16/000450</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
