Collapsing tree into more sane Go project layout
since I was in here looking at something unrelated...
This commit is contained in:
24
gotime/amqpfun-runner/main.go
Normal file
24
gotime/amqpfun-runner/main.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
import (
|
||||
"github.com/meatballhat/box-o-sand/gotime/amqpfun"
|
||||
)
|
||||
|
||||
const USAGE = "Usage: amqpfun-runner (publish|consume)"
|
||||
|
||||
func main() {
|
||||
if len(os.Args) < 2 {
|
||||
fmt.Println(USAGE)
|
||||
os.Exit(1)
|
||||
}
|
||||
if os.Args[1] == "publish" {
|
||||
amqpfun.Publish()
|
||||
} else if os.Args[1] == "consume" {
|
||||
amqpfun.Consume()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user