<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Conventions - 标签 - Windvalley</title><link>https://windvalley.github.io/tags/conventions/</link><description>Conventions - 标签 - Windvalley</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>levinwang6@gmail.com (windvalley)</managingEditor><webMaster>levinwang6@gmail.com (windvalley)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Sat, 01 Jun 2019 23:52:42 +0800</lastBuildDate><atom:link href="https://windvalley.github.io/tags/conventions/" rel="self" type="application/rss+xml"/><item><title>OpenResty编码规范</title><link>https://windvalley.github.io/openresty-code-conventions/</link><pubDate>Sat, 01 Jun 2019 23:52:42 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/openresty-code-conventions/</guid><description>变量名 所有变量都使用local声明, 限制作用域. 变量名小写, 使用下划线连接. 常量名 常量名全部大写, 多个单词通过下划线_连接. 文件名 lua文件</description></item><item><title>Go语言编码规范</title><link>https://windvalley.github.io/go-code-conventions/</link><pubDate>Tue, 27 Mar 2018 09:42:23 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/go-code-conventions/</guid><description>命名规范 文件名 整个应用或包的主入口文件应当是main.go或与应用名称简写相同. 文件名如果包含多个单词通过下划线连接. 包名 包名应该简短、清晰</description></item><item><title>Python编码规范</title><link>https://windvalley.github.io/python-code-conventions/</link><pubDate>Sat, 10 Jun 2017 19:32:48 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/python-code-conventions/</guid><description>缩进规范 使用四空格缩进 每行最大长度79个字符(flake8要求79个字符, pylint要求的规范是每行长度不能超过100个字符) 空行规范 全局</description></item><item><title>Shell编码规范</title><link>https://windvalley.github.io/shell-code-conventions/</link><pubDate>Sat, 27 Nov 2010 22:14:44 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/shell-code-conventions/</guid><description>文件名字 要以.sh为扩展名 脚本名尽量表达脚本的用途 脚本要给执行权限, 并且推荐以./foo.sh方式执行 1 2 3 foo.sh chmod u+x foo.sh ./foo.sh 脚本头部 首行必须指定脚</description></item></channel></rss>