Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.4 KB

CONTRIBUTING.md

File metadata and controls

54 lines (36 loc) · 1.4 KB

贡献指南

你好!我们很高兴你想为这个项目做出贡献。 你的帮助对保持它的完美是至关重要的。

代码格式

  1. 函数名严格按照 PHP下划线 => Go大驼峰命名

  2. 缩进统一使用Tab

  3. 每次提交一个函数,注释以函数名开头

  4. 新增函数文件以PHP函数名命名单独提交,方便后期函数排序整理

  5. 不要提交二进制文件(本地测试可以使用go run命令)

示例:

// FuncName - Description of function do
func FuncName(args Type) Type {
    return args
}

贡献代码

  1. Fork https://github.com/awesee/php2go 并克隆到本地.

  2. 创建新的分支:

    $ git checkout -b my-new-feature
  3. 编写提交代码。

    $ git commit -am 'Add some feature'
  4. Push 到你的分支。

    $ git push origin my-new-feature
  5. 创建 Pull Request 并描述你完成的功能或者做出的修改。

Resources