Skip to content

Commit efbf0e2

Browse files
committed
Fix imports
1 parent 7704b37 commit efbf0e2

27 files changed

+48
-48
lines changed

examples/array.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"time"
88
)
99

examples/binarypatterntest.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"time"
88
)
99

examples/buffer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
)
88

99
func main() {

examples/diningphilosophers.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"math/rand"
88
"time"
99
)

examples/heavyload.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
)
88

99
func createUnaryPattern[T any](num int, pA types.Port) {

examples/interference.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"time"
88
)
99

examples/mapreduce/mapreduce.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package main
22

33
import (
4-
"../../gojo/junction"
5-
"../../gojo/types"
64
"bytes"
75
"constraints"
86
"encoding/gob"
97
"fmt"
8+
"github.com/junctional/GoJo/gojo/junction"
9+
"github.com/junctional/GoJo/gojo/types"
1010
"hash/fnv"
1111
"strings"
1212
"time"

examples/mapreduce/mapreducesimple.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package main
22

33
import (
4-
"../../gojo/junction"
5-
"../../gojo/types"
64
"constraints"
75
"fmt"
6+
"github.com/junctional/GoJo/gojo/junction"
7+
"github.com/junctional/GoJo/gojo/types"
88
"time"
99
)
1010

examples/mapreduce/mapreducestring.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../../gojo/junction"
5-
"../../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"strings"
88
)
99

examples/mutex.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
)
88

99
func getMutex() (func(types.Unit), func(types.Unit) (types.Unit, error)) {

examples/nonlinearpattern.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"time"
88
)
99

examples/queue/queue.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package queue
22

33
import (
4-
"../../gojo/junction"
5-
"../../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"sync"
88
"time"
99
)

examples/queue/queue1junction.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package queue
22

33
import (
4-
"../../gojo/junction"
5-
"../../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"sync"
88
"time"
99
)

examples/queue/queueMutex.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package queue
22

33
import (
4-
"../../gojo/types"
4+
"github.com/junctional/GoJo/gojo/types"
55
"sync"
66
"time"
77
)

examples/readerwriter.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"../gojo/junction"
5-
"../gojo/types"
64
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
6+
"github.com/junctional/GoJo/gojo/types"
77
"time"
88
)
99

examples/twojunctions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package main
22

33
import (
4-
"../gojo/junction"
54
"fmt"
5+
"github.com/junctional/GoJo/gojo/junction"
66
"time"
77
)
88

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module GoJo
1+
module github.com/junctional/GoJo
22

33
go 1.18

gojo/helper/junctionchecker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package helper
22

33
import (
4-
"../types"
4+
"github.com/junctional/GoJo/gojo/types"
55
)
66

77
// CheckForSameJunction checks if all Ports are registered with the same junction

gojo/junction/controller/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package controller
22

33
import (
4-
"../../types"
4+
"github.com/junctional/GoJo/gojo/types"
55
)
66

77
// StartController starts the controller goroutine, which will register all join patterns + ports for one junction

gojo/junction/controller/controllerdata.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package controller
22

33
import (
4-
"../../types"
4+
"github.com/junctional/GoJo/gojo/types"
55
"sync"
66
)
77

gojo/junction/controller/joinpatternhandler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package controller
22

33
import (
4-
"../../types"
4+
"github.com/junctional/GoJo/gojo/types"
55
)
66

77
// registerNewJoinPattern registers the join pattern with each of the ports it's listening on. Additionally, start a new

gojo/junction/controller/messages.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package controller
22

33
import (
4-
"../../types"
4+
"github.com/junctional/GoJo/gojo/types"
55
"sync/atomic"
66
)
77

gojo/junction/controller/ports.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package controller
22

33
import (
4-
"../../types"
4+
"github.com/junctional/GoJo/gojo/types"
55
)
66

77
// createNewPort creates a new channel that will be used to receive messages on this port. Additionally, it starts a new

gojo/junction/junction.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package junction
22

33
import (
4-
"../patterns/binary"
5-
"../patterns/ternary"
6-
"../patterns/unary"
7-
"../types"
8-
"./controller"
94
"errors"
5+
"github.com/junctional/GoJo/gojo/junction/controller"
6+
"github.com/junctional/GoJo/gojo/patterns/binary"
7+
"github.com/junctional/GoJo/gojo/patterns/ternary"
8+
"github.com/junctional/GoJo/gojo/patterns/unary"
9+
"github.com/junctional/GoJo/gojo/types"
1010
)
1111

1212
// Junction is the entrypoint to register new Signals and Join Patterns. The only necessary information is the port to

gojo/patterns/binary/patterns.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package binary
22

33
import (
4-
"../../types"
54
"errors"
5+
"github.com/junctional/GoJo/gojo/helper"
6+
"github.com/junctional/GoJo/gojo/types"
67
)
7-
import "../../helper"
88

99
// AsyncPattern Struct containing all ports the join pattern is listening on and defines the Action data types
1010
type AsyncPattern[T any, R any] struct {

gojo/patterns/ternary/patterns.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package ternary
22

33
import (
4-
"../../types"
54
"errors"
5+
"github.com/junctional/GoJo/gojo/helper"
6+
"github.com/junctional/GoJo/gojo/types"
67
)
7-
import "../../helper"
88

99
// AsyncPattern Struct containing all ports the join pattern is listening on and defines the Action data types
1010
type AsyncPattern[T any, S any, R any] struct {

gojo/patterns/unary/patterns.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package unary
22

33
import (
4-
"../../helper"
5-
"../../types"
64
"errors"
5+
"github.com/junctional/GoJo/gojo/helper"
6+
"github.com/junctional/GoJo/gojo/types"
77
)
88

99
// AsyncPattern Struct containing all ports the join pattern is listening on and defines the Action data types

0 commit comments

Comments
 (0)