Skip to content

Commit

Permalink
增加不常见参数场景
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyahui8 committed Sep 28, 2024
1 parent e6c70b5 commit 72955eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Callback(fn func()) {
}

func Handle() {

_, _, _ = WithUnusualParam(1, 2, "ccc", true, 0)
}

func Trade() {
Expand Down Expand Up @@ -99,6 +99,11 @@ func N(n int) int {
return n * N(n-1)
}

func WithUnusualParam(a, b int, c string, _ bool, bool int) (x, y int, _ error) {
time.Sleep(10 * time.Millisecond)
return 0, 0, nil
}

var db = make(map[string]string)

func setupRouter() *gin.Engine {
Expand Down

0 comments on commit 72955eb

Please sign in to comment.