<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenResty on Laputa</title>
    <link>https://chenjianyong.com/zh/tags/openresty/</link>
    <description>Recent content in OpenResty on Laputa</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Sat, 29 Jan 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://chenjianyong.com/zh/tags/openresty/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Lua: read-only table</title>
      <link>https://chenjianyong.com/zh/blog/2022/lua-read-only-table/</link>
      <pubDate>Sat, 29 Jan 2022 00:00:00 +0000</pubDate>
      <guid>https://chenjianyong.com/zh/blog/2022/lua-read-only-table/</guid>
      <description>&lt;h2 id=&#34;preface&#34;&gt;Preface&lt;/h2&gt;&#xA;&lt;p&gt;Lua 中的 API 都是以 Lua table 的方式存储并提供给用户使用，拿 OpenResty 中的 &lt;code&gt;ngx.say&lt;/code&gt; API 为例：其中 &lt;code&gt;ngx&lt;/code&gt; 是全局环境(也是一个 Lua table)中一个名为 &lt;code&gt;ngx&lt;/code&gt; 的 key 对应的 value(一个 table)，而 &lt;code&gt;say&lt;/code&gt;，则是 &lt;code&gt;ngx&lt;/code&gt; 这个 table 中一个名为 &lt;code&gt;say&lt;/code&gt; 的 key 对应的 value(一个 C function)；而 Lua 标准库也是如此。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
