<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daisuzu</author_name>
  <author_url>https://blog.hatena.ne.jp/daisuzu/</author_url>
  <blog_title>daisuzu's notes</blog_title>
  <blog_url>https://daisuzu.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>goplsはgopls -listen=&lt;addr&gt;で実行するとdaemonモードで起動し、指定した&lt;addr&gt;でTCP接続できるようになる。 github.com クライアントはgoplsを使っても良いし、独自に実装することも可能。 その場合、TCP上で以下のような形式のJSON-RPCを送受信すれば良い。 (改行は\r\n) リクエスト Content-Length: &lt;JSON部分のbyte数&gt; {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;method&quot;:&quot;initialize&quot;,&quot;params&quot;:{},&quot;id&quot;:1} レスポンス Content-Length: &lt;JSON部分のbyte数&gt; {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaisuzu.hatenablog.com%2Fentry%2F2021%2F08%2F15%2F011720&quot; title=&quot;goplsのdaemonモードを使う - daisuzu&amp;#39;s notes&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>2021-08-15 01:17:20</published>
  <title>goplsのdaemonモードを使う</title>
  <type>rich</type>
  <url>https://daisuzu.hatenablog.com/entry/2021/08/15/011720</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
