diff options
-rw-r--r-- | cmd/santa-example/main.go (renamed from example_santa_test.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example_santa_test.go b/cmd/santa-example/main.go index 93de67f..29119cc 100644 --- a/example_santa_test.go +++ b/cmd/santa-example/main.go @@ -27,7 +27,7 @@ // and then delay for a random interval before trying to join a group again. // // See the paper for more details regarding the solution's implementation. -package stm_test +package main import ( "fmt" @@ -160,7 +160,7 @@ func spawnSanta(elves, reindeer *group) { } } -func Example() { +func main() { elfGroup := newGroup(3) for i := 0; i < 10; i++ { go spawnElf(elfGroup, i) |