<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suganoo</author_name>
  <author_url>https://blog.hatena.ne.jp/suganoo/</author_url>
  <blog_title>S氏はたまにblogを更新してます</blog_title>
  <blog_url>https://blog.suganoo.net/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>golang</anon>
  </categories>
  <description>Golangにはtempとしてのファイル操作関数があるんですね。便利ですね。 あまり使う用途ないかもしれませんが、パッと見関数で何やってるかわかって可読性がちょっとよくなるかもしれません。 サンプルコード ポイント ioutil.TempFile ioutil.TempDir os.TempDir まとめ サンプルコード package main import ( &quot;io/ioutil&quot; &quot;os&quot; &quot;log&quot; &quot;fmt&quot; ) func main() { temp_file, err := ioutil.TempFile(os.TempDir(), &quot;tempfile-test-&quot;) if er…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.suganoo.net%2Fentry%2F2018%2F09%2F04%2F094134&quot; title=&quot;【Golang】tmpファイルを扱う - S氏はたまにblogを更新してます&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://cdn-ak.f.st-hatena.com/images/fotolife/s/suganoo/20180904/20180904093850.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-04 09:41:34</published>
  <title>【Golang】tmpファイルを扱う</title>
  <type>rich</type>
  <url>https://blog.suganoo.net/entry/2018/09/04/094134</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
