<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Golang on Laily&#39;s Note</title>
    
    
    
    <link>/tags/golang/</link>
    <description>Recent content in Golang on Laily&#39;s Note</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <lastBuildDate>Sat, 24 May 2025 22:00:48 +0800</lastBuildDate>
    
	<atom:link href="/tags/golang/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>关于依赖注入（DI）</title>
      <link>/post/golang/di/</link>
      <pubDate>Sat, 24 May 2025 22:00:48 +0800</pubDate>
      
      <guid>/post/golang/di/</guid>
      <description>
        
          
          
          
        
        
        
          &lt;p&gt;依赖注入和控制反转在 Java 里应该很常见了，不过 Go 里并不那么流行。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;为什么需要 DI&lt;/li&gt;
&lt;li&gt;为什么需要 IoC&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Go 的很大一个特点就是简单，Less is more 深入人心。我也是因为这个原因从 Java 转向了 Go。用 Go 写项目没有那么多条条框框，比如一个简单的 web 项目结构可能是这样的。&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title>Go 图片处理库</title>
      <link>/post/golang/image-process/</link>
      <pubDate>Tue, 29 Dec 2020 10:00:00 +0800</pubDate>
      
      <guid>/post/golang/image-process/</guid>
      <description>
        
          
          
          
        
        
        
          &lt;h1 id=&#34;图表渲染&#34;&gt;
  图表渲染
  &lt;a href=&#34;#%e5%9b%be%e8%a1%a8%e6%b8%b2%e6%9f%93&#34; class=&#34;h-anchor&#34; aria-hidden=&#34;true&#34;&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/go-echarts/go-echarts&#34;&gt;https://github.com/go-echarts/go-echarts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;根据配置渲染出 echarts 的 json 配置，然后输出。感觉本质上还是 echarts 渲染的页面。&lt;/p&gt;
&lt;p&gt;这个不提供生成图片。&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/vdobler/chart&#34;&gt;https://github.com/vdobler/chart&lt;/a&gt; star：90&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/gonum/plot&#34;&gt;https://github.com/gonum/plot&lt;/a&gt;   star: 126&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/wcharczuk/go-chart&#34;&gt;https://github.com/wcharczuk/go-chart&lt;/a&gt; star: 2439&lt;/p&gt;
&lt;p&gt;简单的图表生成&lt;/p&gt;
&lt;h1 id=&#34;canvas-转图片&#34;&gt;
  Canvas 转图片
  &lt;a href=&#34;#canvas-%e8%bd%ac%e5%9b%be%e7%89%87&#34; class=&#34;h-anchor&#34; aria-hidden=&#34;true&#34;&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/tfriedel6/canvas&#34;&gt;https://github.com/tfriedel6/canvas&lt;/a&gt;  star: 238&lt;/p&gt;
&lt;h1 id=&#34;html-转图片&#34;&gt;
  HTML 转图片
  &lt;a href=&#34;#html-%e8%bd%ac%e5%9b%be%e7%89%87&#34; class=&#34;h-anchor&#34; aria-hidden=&#34;true&#34;&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/ninetwentyfour/go-wkhtmltoimage&#34;&gt;https://github.com/ninetwentyfour/go-wkhtmltoimage&lt;/a&gt;  star：9&lt;/p&gt;
          
        
        </description>
    </item>
    
  </channel>
</rss>