Skip to content

Commit 4954a85

Browse files
committed
pkg
1 parent de733ea commit 4954a85

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bin/
1818
/vendor/
1919

2020
# Go dependency files
21-
/go.sum
21+
#/go.sum
2222
/go.work.sum
2323

2424
# Logs

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ package main
8282
import (
8383
"fmt"
8484
"time"
85-
"github.com/yourusername/go_memoize"
85+
m "github.com/AhmedGoudaa/go_memoize"
8686
)
8787

8888
func main() {
@@ -92,7 +92,7 @@ func main() {
9292
return fmt.Sprintf("%d-%s", a, b)
9393
}
9494

95-
memoizedFn := memoize.Memoize2(computeFn, 10*time.Second)
95+
memoizedFn := m.Memoize2(computeFn, 10*time.Second)
9696

9797
// First call will compute the result
9898
result := memoizedFn(5, "example")

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
module github.com/AhmedGoudaa/go_memoize
2+
23
go 1.22

go.sum

Whitespace-only changes.

0 commit comments

Comments
 (0)