Skip to content

Commit 590146e

Browse files
committed
Add make docker target
Signed-off-by: Alexey Palazhchenko <[email protected]>
1 parent f242a58 commit 590146e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ help: ## Display this help message.
77
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | \
88
awk -F ':.*?## ' 'NF==2 {printf " %-20s%s\n", $$1, $$2}'
99

10+
docker:
11+
docker run -it -v $(PWD):/workshop -w /workshop ghcr.io/aleksi/golang-tip:dev.fuzz /bin/bash
12+
1013
init: ## Install tools.
1114
go generate -x -tags=tools ./tools
1215
make build

reverse.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package pb_fuzz_workshop
22

33
func Reverse(s []int) []int {
4+
if s == nil {
5+
return nil
6+
}
7+
48
a := make([]int, len(s))
59
copy(a, s)
610

0 commit comments

Comments
 (0)