<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Go on 彩票号码助手</title>
    <link>/blog/tags/go/</link>
    <description>Recent content in Go on 彩票号码助手</description>
    <generator>Hugo</generator>
    <language>zh-hans</language>
    <copyright>Copyright © 2000-2026 zc310.tech. All Rights Reserved.
</copyright>
    <lastBuildDate>Wed, 08 Mar 2023 00:00:00 +0000</lastBuildDate><atom:link href="/blog/tags/go/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>golang msgpack</title>
      <link>/blog/post/my/2023/go-msgpack/</link>
      <pubDate>Wed, 08 Mar 2023 00:00:00 +0000</pubDate>
      <guid>/blog/post/my/2023/go-msgpack/</guid>
      <description><![CDATA[<p>这个库<code>github.com/shamaton/msgpack/v2</code>速度真是快，可是不如<code>github.com/vmihailenco/msgpack/v5</code>兼容性好（它支持<code>omitempty</code>标记）</p>]]></description>
    </item>
    
    <item>
      <title>fast JsonRpc</title>
      <link>/blog/post/my/2023/fastjsonrpc/</link>
      <pubDate>Sun, 29 Jan 2023 00:00:00 +0000</pubDate>
      <guid>/blog/post/my/2023/fastjsonrpc/</guid>
      <description><![CDATA[<p>使用<a href="https://github.com/valyala/fasthttp" target="_blank" rel="noopener noreferrer">fasthttp<i class="fas fa-external-link-square-alt ms-1"></i></a>比较多，<a href="/post/rich_app/download/">号码助手 app</a> 过滤接口使用的<a href="https://github.com/valyala/fastjson" target="_blank" rel="noopener noreferrer">fastjson<i class="fas fa-external-link-square-alt ms-1"></i></a>解析数据，弄了一个利用<a href="https://github.com/valyala/quicktemplate" target="_blank" rel="noopener noreferrer">quicktemplate<i class="fas fa-external-link-square-alt ms-1"></i></a>输出 <a href="https://www.jsonrpc.org/specification" target="_blank" rel="noopener noreferrer">jsonrpc数据<i class="fas fa-external-link-square-alt ms-1"></i></a> 的小代码。</p>]]></description>
    </item>
    
    <item>
      <title>编译Win程序运行报错：go-sqlite3 requires cgo to work</title>
      <link>/blog/post/my/2020/cgo_enabled-go-sqlite3-requires-cgo-to-work/</link>
      <pubDate>Sat, 23 Jan 2021 00:00:00 +0000</pubDate>
      <guid>/blog/post/my/2020/cgo_enabled-go-sqlite3-requires-cgo-to-work/</guid>
      <description><![CDATA[<p>编译号程序放Windows运行报错</p>
<p><code>Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub</code>，
按照下面参数编译就正常了</p>
<pre><code>env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64  go build
</code></pre>
<p>安装 看看？</p>
<pre><code>apt-get install gcc-multilib
apt-get install gcc-mingw-w64
</code></pre>]]></description>
    </item>
    
    <item>
      <title>Golang HTTP 请求同时支持 gzip deflate Brotli 编码</title>
      <link>/blog/post/my/2020/golang-http-brotli/</link>
      <pubDate>Wed, 09 Dec 2020 00:00:00 +0000</pubDate>
      <guid>/blog/post/my/2020/golang-http-brotli/</guid>
      <description><![CDATA[<p>可利用 <a href="https://github.com/andybalholm/brotli" target="_blank" rel="noopener noreferrer">https://github.com/andybalholm/brotli<i class="fas fa-external-link-square-alt ms-1"></i></a> 加个简单判断就支持<code>br</code>压缩 😀。</p>

<div style="width:100%;height:0;padding-bottom:40%;position:relative;">
    <iframe src="https://giphy.com/embed/11sBLVxNs7v6WA"
      width="100%" height="100%" style="position:absolute"
      frameBorder="0" allowFullScreen></iframe></div>

<p>go 语言 http 默认未传递<code>Accept-Encoding</code>参数会自动支持<code>gzip</code>压缩,</p>
<p>😱 一旦修改此标记所有解码都需要自己来处理,我选用<a href="https://github.com/klauspost/compress" target="_blank" rel="noopener noreferrer">https://github.com/klauspost/compress<i class="fas fa-external-link-square-alt ms-1"></i></a>解压。</p>]]></description>
    </item>
    
    <item>
      <title>Go Module代理服务</title>
      <link>/blog/post/my/2020/go-module-goproxy/</link>
      <pubDate>Mon, 07 Dec 2020 00:00:00 +0000</pubDate>
      <guid>/blog/post/my/2020/go-module-goproxy/</guid>
      <description><![CDATA[<p>暂时使用它了<code>export GOPROXY=https://mirrors.aliyun.com/goproxy/</code></p>]]></description>
    </item>
    
    <item>
      <title>golang sftp</title>
      <link>/blog/post/my/2020/golang-sftp/</link>
      <pubDate>Mon, 07 Dec 2020 00:00:00 +0000</pubDate>
      <guid>/blog/post/my/2020/golang-sftp/</guid>
      <description><![CDATA[<p><a href="https://github.com/pkg/sftp" target="_blank" rel="noopener noreferrer">https://github.com/pkg/sftp<i class="fas fa-external-link-square-alt ms-1"></i></a></p>]]></description>
    </item>
    
    <item>
      <title>使用Golang生成二维码图片</title>
      <link>/blog/post/my/2020/golang-create-qrcode/</link>
      <pubDate>Wed, 25 Nov 2020 00:00:01 +0000</pubDate>
      <guid>/blog/post/my/2020/golang-create-qrcode/</guid>
      <description><![CDATA[<p>看到几个 Go QRCode 库都不错,直接拿来测试看看了，谢谢你们 💐！</p>
<ul>
<li><a href="http://github.com/boombuler/barcode/qr" target="_blank" rel="noopener noreferrer">http://github.com/boombuler/barcode/qr<i class="fas fa-external-link-square-alt ms-1"></i></a> 最后选它输出图片再简单调整下尺寸 🎉</li>
<li><a href="http://github.com/skip2/go-qrcode" target="_blank" rel="noopener noreferrer">http://github.com/skip2/go-qrcode<i class="fas fa-external-link-square-alt ms-1"></i></a> 小图时识别效果不太好</li>
<li><a href="http://github.com/yeqown/go-qrcode" target="_blank" rel="noopener noreferrer">http://github.com/yeqown/go-qrcode<i class="fas fa-external-link-square-alt ms-1"></i></a> 像只能输出 jpeg 格式</li>
</ul>]]></description>
    </item>
    
    <item>
      <title>Go Libraries and Software</title>
      <link>/blog/post/my/awesome-go/</link>
      <pubDate>Wed, 25 Nov 2020 00:00:00 +0000</pubDate>
      <guid>/blog/post/my/awesome-go/</guid>
      <description><![CDATA[<ul>
<li><a href="https://github.com/golang/go/wiki/Projects" target="_blank" rel="noopener noreferrer">go/wiki/Projects<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="https://github.com/lithammer/fuzzysearch" target="_blank" rel="noopener noreferrer">Tiny and fast fuzzy search<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="https://github.com/ka-weihe/fast-levenshtein" target="_blank" rel="noopener noreferrer">Fastest levenshtein<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
</ul>

<h2 id="compress" data-numberify>compress<a class="anchor ms-1" href="#compress"></a></h2>
<ul>
<li><a href="https://github.com/andybalholm/brotli" target="_blank" rel="noopener noreferrer">brotli<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="https://github.com/klauspost/compress" target="_blank" rel="noopener noreferrer">klauspost<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
</ul>

<h2 id="qrcode" data-numberify>qrcode<a class="anchor ms-1" href="#qrcode"></a></h2>
<ul>
<li><a href="http://github.com/boombuler/barcode" target="_blank" rel="noopener noreferrer">boombuler<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="http://github.com/skip2/go-qrcode" target="_blank" rel="noopener noreferrer">skip2<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="http://github.com/yeqown/go-qrcode" target="_blank" rel="noopener noreferrer">yeqown<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
</ul>

<h2 id="ssh" data-numberify>ssh<a class="anchor ms-1" href="#ssh"></a></h2>
<ul>
<li><a href="https://github.com/pkg/sftp" target="_blank" rel="noopener noreferrer">sftp<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
</ul>]]></description>
    </item>
    
  </channel>
</rss>

