Skip to content

Commit 0c658a8

Browse files
committed
move examples to submodule
1 parent e372cc3 commit 0c658a8

File tree

6 files changed

+22
-73
lines changed

6 files changed

+22
-73
lines changed

docs.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Package retry provides the most advanced interruptible mechanism
2+
// to perform actions repetitively until successful.
3+
//
4+
// The retry based on https://github.com/Rican7/retry but fully reworked
5+
// and focused on integration with the https://github.com/kamilsk/breaker
6+
// and the built-in https://pkg.go.dev/context package.
7+
package retry

example_test.go

-72
This file was deleted.

compare_test.go renamed to examples/compare_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package retry_test
1+
package examples_test
22

33
import (
44
"context"

examples/docs.go

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Package examples contains extended documentation
2+
// for github.com/kamilsk/retry/v5 module.
3+
//
4+
// It contains examples of usage with additional
5+
// dependencies that are not needed by the module.
6+
package examples

examples/go.mod

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module github.com/kamilsk/retry/examples
2+
3+
go 1.13
4+
5+
require github.com/kamilsk/retry/v5 v5.0.0-rc8
6+
7+
replace github.com/kamilsk/retry/v5 => ../

examples/http_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package examples_test

0 commit comments

Comments
 (0)