<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bearmini</author_name>
  <author_url>https://blog.hatena.ne.jp/bearmini/</author_url>
  <blog_title>bearmini's blog</blog_title>
  <blog_url>https://bearmini.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>何を言ってるかわか（ry ファイルのパーミッションを変更する chmod コマンド相当の関数は、私の知る限り Golang の標準ライブラリには 2 つあって、しかもそのいずれもが Windows 上では期待したような動作にならないって、みなさん知っていましたか？ まずひとつめ、os.Chmod() 、これは内部的に syscall.Chmod() を呼んでいます。 syscall.Chmod() は このあたり に実装があって（本記事執筆時点）、ソースコードをご覧頂いてもわかるように Windows API の SetFileAttributes() を呼んでファイルの ReadOnly 属…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbearmini.hatenablog.com%2Fentry%2F2017%2F04%2F27%2F214433&quot; title=&quot; Go のプログラムで Windows 上で chmod しようとしただけなのになぜか golang.org/x/sys/windows にバグっぽい挙動を見つけたばかりかなぜかアセンブラを読むハメになった話 - bearmini&amp;#39;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/b/bearmini/20170427/20170427193959.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-04-27 21:44:33</published>
  <title> Go のプログラムで Windows 上で chmod しようとしただけなのになぜか golang.org/x/sys/windows にバグっぽい挙動を見つけたばかりかなぜかアセンブラを読むハメになった話</title>
  <type>rich</type>
  <url>https://bearmini.hatenablog.com/entry/2017/04/27/214433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
