<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Slice on PlumePHP</title><link>https://plumephp.com/tags/slice/</link><description>Recent content in Slice on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sun, 09 Feb 2020 21:05:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/slice/index.xml" rel="self" type="application/rss+xml"/><item><title>Go 切片、Map 和字符串：写业务代码绕不开的数据结构</title><link>https://plumephp.com/go-slices-maps-and-strings/</link><pubDate>Sun, 09 Feb 2020 21:05:00 +0800</pubDate><guid>https://plumephp.com/go-slices-maps-and-strings/</guid><description>&lt;h2 id="数据结构决定业务代码的日常手感"&gt;数据结构决定业务代码的日常手感&lt;/h2&gt;
&lt;p&gt;写 Go 后端时，你每天都会处理列表、键值表和文本。用户列表是切片，配置项是 Map，HTTP 请求里的路径、标题和 JSON 字段大多是字符串。语法上它们都很容易上手，但如果不了解一些底层直觉，很容易写出表面能跑、遇到边界就出问题的代码。&lt;/p&gt;</description></item></channel></rss>