1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-17 03:02:28 +08:00

docs: add v2 in import path

This commit is contained in:
dudaodong
2022-03-17 11:33:45 +08:00
parent 50c6e51393
commit 40b2560752
34 changed files with 497 additions and 497 deletions

View File

@@ -13,7 +13,7 @@ Package retry is for executing a function repeatedly until it was successful or
## Usage:
```go
import (
"github.com/duke-git/lancet/retry"
"github.com/duke-git/lancet/v2/retry"
)
```
@@ -46,7 +46,7 @@ import (
"context"
"errors"
"fmt"
"github.com/duke-git/lancet/retry"
"github.com/duke-git/lancet/v2/retry"
"time"
)
@@ -92,7 +92,7 @@ import (
"fmt"
"errors"
"log"
"github.com/duke-git/lancet/retry"
"github.com/duke-git/lancet/v2/retry"
)
func main() {
@@ -134,7 +134,7 @@ import (
"fmt"
"errors"
"log"
"github.com/duke-git/lancet/retry"
"github.com/duke-git/lancet/v2/retry"
)
func main() {
@@ -173,7 +173,7 @@ import (
"fmt"
"errors"
"log"
"github.com/duke-git/lancet/retry"
"github.com/duke-git/lancet/v2/retry"
)
func main() {
@@ -213,7 +213,7 @@ import (
"fmt"
"errors"
"log"
"github.com/duke-git/lancet/retry"
"github.com/duke-git/lancet/v2/retry"
)
func main() {