For example, if you complete the go code of linkedlist_queue in chapter_stack_and_queue, the commit message should be like:
feat(stack_and_queue/linkedlist_queue): add go code.
2、What one commit contains
If you complete two module code, testcase and docs, you commit log should be like:
docs(tree/binary_tree_bfs): add go code.
docs(stack_and_queue): add go code.
feat(stack_and_queue/linkedlist_queue): add go code and testcases.
test(tree/binary_tree_bfs): add go testcases.
feat(tree/binary_tree_bfs): add go code.
If you fix a bug, the commit log should be like :
docs(searching/linear_search): modify go code.
fix(searching/linear_search): fix go code.
Code Style
1、All code should be error-free when run through gofmt and go test.
2、Consistent with existing go code style.
3、Refer to uber/go-style.
We need your help translating the code to Go.
Please check the contribution guidelines at #15
TODO List
Commit Guidelines
1、Format of the commit message Refer to AngularJS Git Commit Message Conventions
Allowed
<type>
Allowed
<scope>
For example, if you complete the go code of linkedlist_queue in chapter_stack_and_queue, the commit message should be like:
2、What one commit contains If you complete two module code, testcase and docs, you commit log should be like:
If you fix a bug, the commit log should be like :
Code Style
1、All code should be error-free when run through
gofmt
andgo test
. 2、Consistent with existing go code style. 3、Refer to uber/go-style.