mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 12:52:28 +08:00
merge main branch
This commit is contained in:
11
README.md
11
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.
|
||||
|
||||
@@ -382,4 +382,14 @@ func main() {
|
||||
|
||||
```go
|
||||
Unwrap[T any](val T, err error) //如果err是nil,返回有效的val值。否则, panics
|
||||
```
|
||||
```
|
||||
|
||||
## 如何贡献代码
|
||||
|
||||
非常感激任何的代码提交以使lancet的功能越来越强大。创建pull request时请遵守以下规则。
|
||||
|
||||
1. Fork lancet仓库。
|
||||
2. 创建自己的特性分支。
|
||||
3. 提交变更。
|
||||
4. Push分支。
|
||||
5. 创建新的pull request。
|
||||
|
||||
Reference in New Issue
Block a user