-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa94fdb
commit d5c9111
Showing
17 changed files
with
110 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
# go-utils | ||
# go-utils | ||
|
||
## Testing | ||
- | ||
|
||
```shell | ||
task -p test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
version: '3' | ||
|
||
dotenv: ['.env', '{{.ENV}}/.env.', '{{.HOME}}/.env'] | ||
|
||
tasks: | ||
test: | ||
deps: [test-aws,test-cerrors,test-envlookup,test-errgroup,test-osext,test-sql-escape,test-tspb_cast,test-ulid,test-utf8bom] | ||
test-aws: | ||
dir: aws | ||
cmds: | ||
- docker compose up -d | ||
- defer: docker compose down | ||
- sleep 5 | ||
- go test ./... | ||
test-cerrors: | ||
dir: cerrors | ||
cmds: | ||
- go test ./... | ||
test-envlookup: | ||
dir: envlookup | ||
cmds: | ||
- go test ./... | ||
test-errgroup: | ||
dir: errgroup | ||
cmds: | ||
- go test ./... | ||
test-osext: | ||
dir: osext | ||
cmds: | ||
- go test ./... | ||
test-sql-escape: | ||
dir: sql-escape | ||
cmds: | ||
- go test ./... | ||
test-tspb_cast: | ||
dir: tspb_cast | ||
cmds: | ||
- go test ./... | ||
test-ulid: | ||
dir: ulid | ||
cmds: | ||
- go test ./... | ||
test-utf8bom: | ||
dir: utf8bom | ||
cmds: | ||
- go test ./... | ||
|
||
go-mod-tidy: | ||
deps: [ | ||
go-mod-tidy-aws,go-mod-tidy-cerrors,go-mod-tidy-envlookup,go-mod-tidy-errgroup,go-mod-tidy-osext, | ||
go-mod-tidy-sql-escape,go-mod-tidy-tspb_cast,go-mod-tidy-ulid,go-mod-tidy-utf8bom, | ||
] | ||
go-mod-tidy-aws: | ||
dir: aws | ||
cmds: | ||
- go mod tidy | ||
go-mod-tidy-cerrors: | ||
dir: cerrors | ||
cmds: | ||
- go mod tidy | ||
go-mod-tidy-envlookup: | ||
dir: envlookup | ||
cmds: | ||
- go mod tidy | ||
go-mod-tidy-errgroup: | ||
dir: errgroup | ||
cmds: | ||
- go mod tidy | ||
go-mod-tidy-osext: | ||
dir: osext | ||
cmds: | ||
- go mod tidy | ||
go-mod-tidy-sql-escape: | ||
dir: sql-escape | ||
cmds: | ||
- go mod tidy | ||
go-mod-tidy-tspb_cast: | ||
dir: tspb_cast | ||
cmds: | ||
- go mod tidy | ||
go-mod-tidy-ulid: | ||
dir: ulid | ||
cmds: | ||
- go mod tidy | ||
go-mod-tidy-utf8bom: | ||
dir: utf8bom | ||
cmds: | ||
- go mod tidy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/88labs/go-utils/aws | ||
|
||
go 1.19 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/88labs/go-utils/ulid v0.1.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module github.com/88labs/go-utils/cerrors | ||
|
||
go 1.19 | ||
go 1.20 | ||
|
||
require golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/88labs/go-utils/errgroup | ||
|
||
go 1.19 | ||
go 1.20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/88labs/go-utils/osext | ||
|
||
go 1.18 | ||
go 1.20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/88labs/go-utils/sql-escape | ||
|
||
go 1.18 | ||
go 1.20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module github.com/88labs/go-utils/tspb_cast | ||
|
||
go 1.18 | ||
go 1.20 | ||
|
||
require google.golang.org/protobuf v1.28.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module github.com/88labs/go-utils/ulid | ||
|
||
go 1.18 | ||
go 1.20 | ||
|
||
require github.com/oklog/ulid/v2 v2.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters