Skip to content

Commit e037a50

Browse files
committed
Migration
1 parent b19542c commit e037a50

26 files changed

+47
-47
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ test:
66
go test -cover -timeout=1s -race -count=10 ./...
77

88
onefile:
9-
@go-mergepkg -dirs "." -header "github.com/mdwhatcott/funcy@$(shell git describe) (a little copy-paste is better than a little dependency)"
9+
@go-mergepkg -dirs "." -header "github.com/mdw-go/funcy@$(shell git describe) (a little copy-paste is better than a little dependency)"

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# github.com/mdwhatcott/funcy `[DEPRECATED]`
1+
# github.com/mdw-go/funcy `[DEPRECATED]`
22

33
NOTE: the `funcy` package described first below has been deprecated, in effect having been replaced by the `funcy/ranger` package (describe farther below).
44

55
---
66

7-
[![GoDoc](https://godoc.org/github.com/mdwhatcott/funcy?status.svg)](http://godoc.org/github.com/mdwhatcott/funcy)
7+
[![GoDoc](https://godoc.org/github.com/mdw-go/funcy?status.svg)](http://godoc.org/github.com/mdw-go/funcy)
88

99
What is this?
1010

@@ -20,16 +20,16 @@ Are you aware that this approach lacks lazy evaluation, generates a ton of garba
2020
2121
How would one install it? (Asking for a friend...)
2222

23-
> `go get github.com/mdwhatcott/funcy`
23+
> `go get github.com/mdw-go/funcy`
2424
>
2525
> Enjoy!
2626
2727
---
2828

29-
# github.com/mdwhatcott/funcy/ranger
29+
# github.com/mdw-go/funcy/ranger
3030

31-
[![GoDoc](https://godoc.org/github.com/mdwhatcott/funcy/ranger?status.svg)](http://godoc.org/github.com/mdwhatcott/funcy/ranger)
31+
[![GoDoc](https://godoc.org/github.com/mdw-go/funcy/ranger?status.svg)](http://godoc.org/github.com/mdw-go/funcy/ranger)
3232

3333
Despite what I thought was a very cleverly written disclaimer (above), Go went and released version 1.23 with iterators, which means we can have our cake and eat it too, a phrase which here means that lazy evaluation is now possible and so we no longer need upset functional purists!
3434

35-
I'm not sure how Rob feels about all this, but I sincerely hope you do enjoy the `funcy/ranger` package, with [many accompanying examples](https://github.com/mdwhatcott/funcy/tree/main/ranger/examples).
35+
I'm not sure how Rob feels about all this, but I sincerely hope you do enjoy the `funcy/ranger` package, with [many accompanying examples](https://github.com/mdw-go/funcy/tree/main/ranger/examples).

examples/benchmarks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package examples
33
import (
44
"testing"
55

6-
"github.com/mdwhatcott/funcy"
6+
"github.com/mdw-go/funcy"
77
)
88

99
func Benchmark(b *testing.B) {

examples/bowling_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package examples
33
import (
44
"testing"
55

6-
"github.com/mdwhatcott/funcy"
7-
"github.com/mdwhatcott/funcy/internal/should"
6+
"github.com/mdw-go/funcy"
7+
"github.com/mdw-go/funcy/internal/should"
88
)
99

1010
func TestBowling(t *testing.T) {

examples/euler001_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package examples
33
import (
44
"testing"
55

6-
. "github.com/mdwhatcott/funcy"
7-
"github.com/mdwhatcott/funcy/internal/should"
6+
. "github.com/mdw-go/funcy"
7+
"github.com/mdw-go/funcy/internal/should"
88
)
99

1010
// https://projecteuler.net/problem=1

examples/euler002_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package examples
33
import (
44
"testing"
55

6-
. "github.com/mdwhatcott/funcy"
7-
"github.com/mdwhatcott/funcy/internal/should"
6+
. "github.com/mdw-go/funcy"
7+
"github.com/mdw-go/funcy/internal/should"
88
)
99

1010
// https://projecteuler.net/problem=2

examples/euler006_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package examples
33
import (
44
"testing"
55

6-
. "github.com/mdwhatcott/funcy"
7-
"github.com/mdwhatcott/funcy/internal/should"
6+
. "github.com/mdw-go/funcy"
7+
"github.com/mdw-go/funcy/internal/should"
88
)
99

1010
// https://projecteuler.net/problem=6

examples/euler008_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strings"
66
"testing"
77

8-
. "github.com/mdwhatcott/funcy"
9-
"github.com/mdwhatcott/funcy/internal/should"
8+
. "github.com/mdw-go/funcy"
9+
"github.com/mdw-go/funcy/internal/should"
1010
)
1111

1212
// https://projecteuler.net/problem=8

funcy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Deprecated: use github.com/mdwhatcott/funcy/ranger instead.
1+
// Deprecated: use github.com/mdw-go/funcy/ranger instead.
22
package funcy
33

44
import (

funcy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/mdwhatcott/funcy/internal/should"
9+
"github.com/mdw-go/funcy/internal/should"
1010
)
1111

1212
var (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/mdwhatcott/funcy
1+
module github.com/mdw-go/funcy
22

33
go 1.23

ranger/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ test:
66
go test -cover -timeout=1s -race -count 10 ./...
77

88
onefile:
9-
@go-mergepkg -dirs "." -header "github.com/mdwhatcott/funcy/ranger@$(shell git describe) (a little copy-paste is better than a little dependency)"
9+
@go-mergepkg -dirs "." -header "github.com/mdw-go/funcy/ranger@$(shell git describe) (a little copy-paste is better than a little dependency)"

ranger/examples/aoc2023_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"testing"
77
"unicode"
88

9-
. "github.com/mdwhatcott/funcy/ranger"
10-
"github.com/mdwhatcott/funcy/ranger/internal/should"
9+
. "github.com/mdw-go/funcy/ranger"
10+
"github.com/mdw-go/funcy/ranger/internal/should"
1111
)
1212

1313
func TestAdventOfCode2023Day1Part1(t *testing.T) {

ranger/examples/benchmarks_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package examples
33
import (
44
"testing"
55

6-
"github.com/mdwhatcott/funcy/ranger"
7-
"github.com/mdwhatcott/funcy/ranger/is"
6+
"github.com/mdw-go/funcy/ranger"
7+
"github.com/mdw-go/funcy/ranger/is"
88
)
99

1010
func Benchmark(b *testing.B) {

ranger/examples/bowling_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"iter"
55
"testing"
66

7-
. "github.com/mdwhatcott/funcy/ranger"
8-
"github.com/mdwhatcott/funcy/ranger/internal/should"
7+
. "github.com/mdw-go/funcy/ranger"
8+
"github.com/mdw-go/funcy/ranger/internal/should"
99
)
1010

1111
func TestBowling(t *testing.T) {

ranger/examples/random_alphanumeric_codes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package examples
33
import (
44
"testing"
55

6-
. "github.com/mdwhatcott/funcy/ranger"
6+
. "github.com/mdw-go/funcy/ranger"
77
)
88

99
// https://michaelwhatcott.com/generating-random-alphanumeric-codes-in-clojure/

ranger/examples/threading_macro_example_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package examples
33
import (
44
"testing"
55

6-
. "github.com/mdwhatcott/funcy/ranger"
7-
"github.com/mdwhatcott/funcy/ranger/is"
8-
"github.com/mdwhatcott/funcy/ranger/op"
6+
. "github.com/mdw-go/funcy/ranger"
7+
"github.com/mdw-go/funcy/ranger/is"
8+
"github.com/mdw-go/funcy/ranger/op"
99
)
1010

1111
// A somewhat interesting example, based on this Clojure threading macro example:

ranger/is/is_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strings"
66
"testing"
77

8-
"github.com/mdwhatcott/funcy/ranger/internal/should"
9-
"github.com/mdwhatcott/funcy/ranger/is"
8+
"github.com/mdw-go/funcy/ranger/internal/should"
9+
"github.com/mdw-go/funcy/ranger/is"
1010
)
1111

1212
func seq[V any](s ...V) iter.Seq[V] {

ranger/op/op.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package op
33
import (
44
"math"
55

6-
"github.com/mdwhatcott/funcy/ranger/is"
6+
"github.com/mdw-go/funcy/ranger/is"
77
)
88

99
func Square[N is.Integer](n N) N { return Mul(n, n) }

ranger/op/op_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package op
33
import (
44
"testing"
55

6-
"github.com/mdwhatcott/funcy/ranger/internal/should"
6+
"github.com/mdw-go/funcy/ranger/internal/should"
77
)
88

99
func Test(t *testing.T) {

ranger/ranger.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"math/rand/v2"
77
"slices"
88

9-
"github.com/mdwhatcott/funcy/ranger/internal/ring"
10-
"github.com/mdwhatcott/funcy/ranger/is"
11-
"github.com/mdwhatcott/funcy/ranger/op"
9+
"github.com/mdw-go/funcy/ranger/internal/ring"
10+
"github.com/mdw-go/funcy/ranger/is"
11+
"github.com/mdw-go/funcy/ranger/op"
1212
)
1313

1414
func Complement[V any](predicate func(t V) bool) func(t V) bool {

ranger/ranger_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"strings"
77
"testing"
88

9-
"github.com/mdwhatcott/funcy/ranger/internal/should"
10-
"github.com/mdwhatcott/funcy/ranger/is"
9+
"github.com/mdw-go/funcy/ranger/internal/should"
10+
"github.com/mdw-go/funcy/ranger/is"
1111
)
1212

1313
var (

ranger/to/to.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strconv"
66

7-
"github.com/mdwhatcott/funcy/ranger/is"
7+
"github.com/mdw-go/funcy/ranger/is"
88
)
99

1010
func String[T any](t T) string {

ranger/to/to_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"testing"
55
"time"
66

7-
"github.com/mdwhatcott/funcy/ranger/internal/should"
8-
"github.com/mdwhatcott/funcy/ranger/to"
7+
"github.com/mdw-go/funcy/ranger/internal/should"
8+
"github.com/mdw-go/funcy/ranger/to"
99
)
1010

1111
func TestString(t *testing.T) {

risky/risky.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Deprecated: use github.com/mdwhatcott/funcy/ranger/* instead.
1+
// Deprecated: use github.com/mdw-go/funcy/ranger/* instead.
22
// Package risky houses convenience functions that introduce runtime risks (i.e. cavalier use of reflection)
33
// and therefore are separated from the root funcy package.
44
package risky

risky/risky_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package risky
33
import (
44
"testing"
55

6-
"github.com/mdwhatcott/funcy"
7-
"github.com/mdwhatcott/funcy/internal/should"
6+
"github.com/mdw-go/funcy"
7+
"github.com/mdw-go/funcy/internal/should"
88
)
99

1010
func TestField(t *testing.T) {

0 commit comments

Comments
 (0)