<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gsf_zero1</author_name>
  <author_url>https://blog.hatena.ne.jp/gsf_zero1/</author_url>
  <blog_title>いろいろ備忘録日記</blog_title>
  <blog_url>https://devlights.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>概要 サンプル 参考資料 概要 Go 1.16 から追加となった embed パッケージについてのメモ２個目。 前回は以下。 devlights.hatenablog.com embed パッケージのドキュメントは以下。 golang.org 今回は、単独のファイルを埋め込んで、その内容を []byte で取得するサンプルです。 前回とほぼ同じで、埋め込みデータを格納する変数の型が []byte になるだけですね。 Goでは []byte の取り回しがすごく楽なので、個人的にはこっちをよく利用します。 サンプル 以下のサンプルでは、同一ディレクトリに配置されている helloworld.txt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F2021%2F04%2F23%2F092726&quot; title=&quot;Goメモ-145 (embed メモ (単独ファイル, バイナリで取得)) - いろいろ備忘録日記&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://m.media-amazon.com/images/I/41meaSLNFfL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-23 09:27:26</published>
  <title>Goメモ-145 (embed メモ (単独ファイル, バイナリで取得))</title>
  <type>rich</type>
  <url>https://devlights.hatenablog.com/entry/2021/04/23/092726</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
