1
0
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:
dudaodong
2022-03-01 15:00:02 +08:00
2 changed files with 22 additions and 1 deletions

View File

@@ -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.

View File

@@ -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。