Stubbing in new Go project for playing more with AMQP and database stuff
This commit is contained in:
parent
c556fa9b7c
commit
597f07ec2f
2
sylvilagus/.example-autoenv.env
Normal file
2
sylvilagus/.example-autoenv.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export GOPATH="$GOROOT:$HOME/src/box-o-sand/src/sylvilagus"
|
||||||
|
test -n "$GOROOT" && source "$GOROOT/misc/bash/go"
|
3
sylvilagus/.gitignore
vendored
Normal file
3
sylvilagus/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/bin/*
|
||||||
|
/.env
|
||||||
|
/src/github.com/
|
27
sylvilagus/Makefile
Normal file
27
sylvilagus/Makefile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
CLEAN_GOPATH := $(shell echo $(GOPATH) | tr ":" "\n" | grep -v '^$$' | grep -v $(PWD) | tr "\n" ":")
|
||||||
|
GOPATH := $(PWD):$(CLEAN_GOPATH)
|
||||||
|
PACKAGES := meatballhat.com/sylvilagus
|
||||||
|
|
||||||
|
export GOPATH
|
||||||
|
|
||||||
|
|
||||||
|
test: build
|
||||||
|
go test $(PACKAGES)
|
||||||
|
|
||||||
|
build: deps fmt
|
||||||
|
go install $(PACKAGES)
|
||||||
|
|
||||||
|
deps:
|
||||||
|
go list -f '{{range .Imports}}{{.}} {{end}}' $(PACKAGES) | xargs go get
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
go fmt $(PACKAGES)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -v bin/*
|
||||||
|
|
||||||
|
env:
|
||||||
|
@echo GOPATH=$(GOPATH)
|
||||||
|
@echo PACKAGES=$(PACKAGES)
|
||||||
|
|
||||||
|
.PHONY: all clean env fmt
|
0
sylvilagus/bin/.gitkeep
Normal file
0
sylvilagus/bin/.gitkeep
Normal file
14
sylvilagus/src/meatballhat.com/sylvilagus/main.go
Normal file
14
sylvilagus/src/meatballhat.com/sylvilagus/main.go
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/streadway/amqp"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
amqp.Dial("")
|
||||||
|
fmt.Println("YES GO!")
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user