diff --git a/README.md b/README.md index 5bf5084..1cf0c81 100644 --- a/README.md +++ b/README.md @@ -377,3 +377,14 @@ func main() { ```go Unwrap[T any](val T, err error) //if err is nil then it returns a valid value otherwise it panics ``` + + +## How to Contribute + +I really appreciate any code commits which make lancet lib powerful. Please follow the rules below to create your pull request. + +1. Fork the repository. +2. Create your feature branch. +3. Commit your changes. +4. Push to the branch +5. Create new pull request. diff --git a/README_zh-CN.md b/README_zh-CN.md index d3748cc..6a2f131 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -382,4 +382,14 @@ func main() { ```go Unwrap[T any](val T, err error) //如果err是nil,返回有效的val值。否则, panics -``` \ No newline at end of file +``` + +## 如何贡献代码 + +非常感激任何的代码提交以使lancet的功能越来越强大。创建pull request时请遵守以下规则。 + +1. Fork lancet仓库。 +2. 创建自己的特性分支。 +3. 提交变更。 +4. Push分支。 +5. 创建新的pull request。