<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lirlia</author_name>
  <author_url>https://blog.hatena.ne.jp/lirlia/</author_url>
  <blog_title>フラミナル</blog_title>
  <blog_url>https://blog.framinal.life/</blog_url>
  <categories>
    <anon>備忘録</anon>
  </categories>
  <description>こんなコードを書いたら snippet が url encoding されてまともに読めなかった。 title := fmt.Sprintf(&quot;xxx-%d&quot;, now.Unix()) _, err = client.UploadFileV2Context(ctx, slack.UploadFileV2Parameters{ contents: result, Title: title, Filename: title, FileSize: len(result), Channel: channel, }) Reader つかって io.Reader を渡したら解決した。 title := f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.framinal.life%2Fentry%2F2024%2F03%2F13%2F123544&quot; title=&quot;(備忘) slack-go で snippet をアップロードしようとしたらURLエンコーディングされてしまった - フラミナル&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>2024-03-13 12:35:44</published>
  <title>(備忘) slack-go で snippet をアップロードしようとしたらURLエンコーディングされてしまった</title>
  <type>rich</type>
  <url>https://blog.framinal.life/entry/2024/03/13/123544</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
