<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>codehex</author_name>
  <author_url>https://blog.hatena.ne.jp/codehex/</author_url>
  <blog_title>アルパカ三銃士</blog_title>
  <blog_url>https://codehex.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>cgo を使ってみます cgo って何？という時にここを読むと良さそうです！ コードを書いてみる cgo では C.C言語の関数() とすることで, C言語から関数を呼び出すことができます. 実際に簡単な print を行うコードを書いてみます. ちなみに OS は Mac OSX 10.11.6 です. package main /* #include &lt;stdio.h&gt; void print(const char *str) { printf(&quot;%s&quot;, str); } */ import &quot;C&quot; func main() { str := C.CString(&quot;Hello, World\n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcodehex.hateblo.jp%2Fentry%2Fuse-cgo&quot; title=&quot;cgo をちゃんと使ってみる!! - アルパカ三銃士&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>2016-12-10 00:00:00</published>
  <title>cgo をちゃんと使ってみる!!</title>
  <type>rich</type>
  <url>https://codehex.hateblo.jp/entry/use-cgo</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
