Skip to content

Commit

Permalink
Add go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
tcr-ableton committed Nov 15, 2020
1 parent 31466e0 commit 9bd57b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_lane_test.go
Expand Up @@ -75,7 +75,7 @@ func ExampleQueue() {
queue.Enqueue("happyClient")
queue.Enqueue("ecstaticClient")

fmt.Println(queue.Head) // grumpyClient
fmt.Println(queue.Head()) // grumpyClient

// Let's handle the clients asynchronously
for client := queue.Dequeue(); client != nil; {
Expand All @@ -92,7 +92,7 @@ func ExampleStack() {
stack.Push("bluePlate")
stack.Push("greenPlate")

fmt.Println(stack.Head) // greenPlate
fmt.Println(stack.Head()) // greenPlate

// What's on top of the stack?
value := stack.Pop()
Expand Down
3 changes: 3 additions & 0 deletions go.mod
@@ -0,0 +1,3 @@
module github.com/oleiade/lane

go 1.15

0 comments on commit 9bd57b2

Please sign in to comment.