Skip to content

Commit 30af7ce

Browse files
authored
chore: Create module, Makefile (#35)
1 parent 5fac08e commit 30af7ce

File tree

5 files changed

+51
-1
lines changed

5 files changed

+51
-1
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
go.sum linguist-generated=true

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.PHONY: test
2+
test:
3+
go test ./...
4+
5+
.PHONY: fmt
6+
fmt:
7+
go fmt ./...
8+
9+
.PHONY: vet
10+
vet:
11+
go vet ./...

db_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func setup(t *testing.T) *athenaHarness {
162162

163163
func (a *athenaHarness) setupTable() {
164164
// tables cannot start with numbers or contain dashes
165-
id, _ := uuid.NewV4()
165+
id := uuid.NewV4()
166166
a.table = "t_" + strings.Replace(id.String(), "-", "_", -1)
167167
a.mustExec(`CREATE EXTERNAL TABLE %[1]s (
168168
nullValue string,

go.mod

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module github.com/segmentio/go-athena
2+
3+
go 1.21
4+
5+
require (
6+
github.com/aws/aws-sdk-go v1.55.5
7+
github.com/satori/go.uuid v1.2.0
8+
github.com/stretchr/testify v1.9.0
9+
)
10+
11+
require (
12+
github.com/davecgh/go-spew v1.1.1 // indirect
13+
github.com/jmespath/go-jmespath v0.4.0 // indirect
14+
github.com/pmezard/go-difflib v1.0.0 // indirect
15+
gopkg.in/yaml.v3 v3.0.1 // indirect
16+
)

go.sum

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)