<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>04. 函数 on Keith's Site</title><link>https://cqroot.github.io/docs/go/04-functions/</link><description>Recent content in 04. 函数 on Keith's Site</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 23 Aug 2026 22:54:33 +0800</lastBuildDate><atom:link href="https://cqroot.github.io/docs/go/04-functions/index.xml" rel="self" type="application/rss+xml"/><item><title>01. 匿名函数和闭包</title><link>https://cqroot.github.io/docs/go/04-functions/01-anonymous-functions-and-closures/</link><pubDate>Sun, 23 Aug 2026 22:54:33 +0800</pubDate><guid>https://cqroot.github.io/docs/go/04-functions/01-anonymous-functions-and-closures/</guid><description>&lt;h1 id="匿名函数和闭包"&gt;匿名函数和闭包&lt;/h1&gt;
&lt;h2 id="1-匿名函数"&gt;1. 匿名函数&lt;/h2&gt;
&lt;p&gt;匿名函数就是没有函数名的函数声明。匿名函数可以作为值赋给变量，也可以直接调用。&lt;/p&gt;
&lt;h2 id="2-闭包"&gt;2. 闭包&lt;/h2&gt;
&lt;p&gt;闭包就是匿名函数和它引用的外部变量。&lt;/p&gt;</description></item></channel></rss>