Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ go.work.sum
.env

# Editor/IDE
# .idea/
# .vscode/
.idea/
.vscode/
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.25.0
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
-include .env

PROJECT = $(shell basename -s .git $(shell git config --get remote.origin.url))

.PHONY: init generate build clean tidy update sync check test coverage benchmark lint fmt vet doc
all: lint test build

init:
@$(MAKE) install-tools
@$(MAKE) install-modules

install-tools:
@go install golang.org/x/tools/cmd/godoc@latest
@go install golang.org/x/tools/cmd/goimports@latest
@go install honnef.co/go/tools/cmd/staticcheck@latest

install-modules:
@go install -v ./...

generate:
@go generate ./...

build:
@go clean -cache
@mkdir -p dist
@go build -ldflags "-s -w" -o ./dist/$(PROJECT) ./cmd/...

clean:
@go clean -cache
@rm -rf dist

tidy:
@go mod tidy

update:
@go get -u all

clean-sum:
@rm go.sum

clean-cache:
@go clean -modcache

sync:
@go work sync

check: lint test staticcheck

test:
@go test -race $(test-options) ./...

coverage:
@go test -race --coverprofile=coverage.out --covermode=atomic $(test-options) ./...

benchmark:
@go test -run="-" -bench=".*" -benchmem $(test-options) ./...

lint: fmt vet staticcheck

fmt:
@goimports -w .

vet:
@go vet ./...

staticcheck:
@staticcheck ./...

doc: init
@godoc -http=:6060
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/siyul-park/minivm

go 1.25.0
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}