<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Peng blog site</title>
    <link>http://pokitpeng.github.io/</link>
    <description>Recent content on Peng blog site</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sun, 10 Jan 2021 14:24:45 +0800</lastBuildDate><atom:link href="http://pokitpeng.github.io/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Golang可选参数</title>
      <link>http://pokitpeng.github.io/post/golang%E5%8F%AF%E9%80%89%E5%8F%82%E6%95%B0/</link>
      <pubDate>Sun, 10 Jan 2021 14:24:45 +0800</pubDate>
      
      <guid>http://pokitpeng.github.io/post/golang%E5%8F%AF%E9%80%89%E5%8F%82%E6%95%B0/</guid>
      <description>在 Golang 语言开发中，对于复杂的、可高度定制的功能，需要有良好的扩展性和兼容性，这里提供一种基于 Option 的设计模式，以解决此类问题。 背景 下面以redis</description>
    </item>
    
    <item>
      <title>Golang Slice注意点</title>
      <link>http://pokitpeng.github.io/post/golang-slice%E6%B3%A8%E6%84%8F%E7%82%B9/</link>
      <pubDate>Mon, 28 Dec 2020 10:58:56 +0800</pubDate>
      
      <guid>http://pokitpeng.github.io/post/golang-slice%E6%B3%A8%E6%84%8F%E7%82%B9/</guid>
      <description>简介 在 Go 语言中，切片是一个引用类型，它是对底层数组的一个视图。切片的底层数组是由 Go 语言的内存分配器自动分配的，并且切片本身也存储在堆上。 切片</description>
    </item>
    
    <item>
      <title>Golang for循环注意点</title>
      <link>http://pokitpeng.github.io/post/golang-for%E5%BE%AA%E7%8E%AF%E6%B3%A8%E6%84%8F%E7%82%B9/</link>
      <pubDate>Sun, 27 Dec 2020 23:47:34 +0800</pubDate>
      
      <guid>http://pokitpeng.github.io/post/golang-for%E5%BE%AA%E7%8E%AF%E6%B3%A8%E6%84%8F%E7%82%B9/</guid>
      <description>在使用 Go 语言的for循环进行迭代时，有以下几点需要注意： Go 语言的 for 循环有三种形式，分别是标准的 for 循环、for-range 循环和 for-select 循环。你应该</description>
    </item>
    
    <item>
      <title>Golang Fmt包详解</title>
      <link>http://pokitpeng.github.io/post/golang-fmt%E5%8C%85%E8%AF%A6%E8%A7%A3/</link>
      <pubDate>Sat, 26 Dec 2020 22:21:01 +0800</pubDate>
      
      <guid>http://pokitpeng.github.io/post/golang-fmt%E5%8C%85%E8%AF%A6%E8%A7%A3/</guid>
      <description>fmt 包是 Go 语言的标准库之一，提供了多种格式化和输出文本的函数。下面是几种常见函数使用方式。 Printf Printf可以说是使用最广泛的函数，没有之一。官</description>
    </item>
    
    <item>
      <title>Golang高效字符串连接</title>
      <link>http://pokitpeng.github.io/post/golang%E9%AB%98%E6%95%88%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%BF%9E%E6%8E%A5/</link>
      <pubDate>Tue, 22 Dec 2020 21:48:42 +0800</pubDate>
      
      <guid>http://pokitpeng.github.io/post/golang%E9%AB%98%E6%95%88%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%BF%9E%E6%8E%A5/</guid>
      <description>字符串拼接在日常开发中是很常见的需求，而且有多种选择，今天我们就来研究研究哪种性能最好。 常见的拼接方式有以下几种： + fmt.Sprintf strings.Join bytes.Buffer strings.Builder 这里直接编写单元</description>
    </item>
    
  </channel>
</rss>
