Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimkurb committed Nov 11, 2024
1 parent 16c9fef commit 3e350f4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
test-config/
./keenetic-pbr
./keenetic-pbr
bin/
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_FULLVERSION:=$(PKG_VERSION)-$(PKG_RELEASE)

BINARY_NAME=keenetic-pbr

build:
GOARCH=amd64 GOOS=linux go build -o bin/${BINARY_NAME}-linux-amd64 main.go

run: build
./bin/${BINARY_NAME}

clean:
go clean
rm ./bin/${BINARY_NAME}-linux-amd64

test:
go test ./...

test_coverage:
go test ./... -coverprofile=coverage.outg

dep:
go mod download

vet:
go vet

lint:
golangci-lint run --enable-all
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module maksimkurb/keenetic-pbr

go 1.22

require github.com/BurntSushi/toml v1.4.0 // indirect
require github.com/BurntSushi/toml v1.4.0

0 comments on commit 3e350f4

Please sign in to comment.