diff --git a/.gitignore b/.gitignore index 28635ec..2613513 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,7 @@ *.out # Dependency directories (remove the comment below to include it) -# vendor/ +vendor/ # Go workspace file go.work diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..06e4ef5 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +.PHONY: run build test tidy deps-upgrade deps-clean-cache + +# ============================================================================== +# Start Rest +run: + go run main.go + +build: + go build main.go + +# ============================================================================== +# Modules support +test: + go test -cover ./... + +tidy: + go mod tidy + go mod vendor + +deps-upgrade: + # go get $(go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all) + go get -u -t -d -v ./... + go mod tidy + go mod vendor + +deps-clean-cache: + go clean -modcache diff --git a/go.mod b/go.mod index 320f38f..c98d07d 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/natefinch/lumberjack v2.0.0+incompatible // indirect github.com/sirupsen/logrus v1.9.3 // indirect - github.com/sivaosorg/govm v1.2.6 + github.com/sivaosorg/govm v1.2.7 ) require ( diff --git a/go.sum b/go.sum index 1c33364..eaca025 100644 --- a/go.sum +++ b/go.sum @@ -56,10 +56,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/sivaosorg/govm v1.2.3 h1:Hwt6SQjwW5XADWqvfwzlf3t9kr5seoPpMk8EE9MO+6I= -github.com/sivaosorg/govm v1.2.3/go.mod h1:rXfPCNGc4ddPf1+VRX8Ytw/5xqehfPRrCr53Oi+cwpw= -github.com/sivaosorg/govm v1.2.6 h1:BCUCNk/yy/rFZ+clMF7ftfw99ZQFO+4QSFV/xe2mWfA= -github.com/sivaosorg/govm v1.2.6/go.mod h1:rXfPCNGc4ddPf1+VRX8Ytw/5xqehfPRrCr53Oi+cwpw= +github.com/sivaosorg/govm v1.2.7 h1:r2HZJDMmU4+BLkQ5h6aC6tn2JZ4A7p6S+khd1a23GAk= +github.com/sivaosorg/govm v1.2.7/go.mod h1:rXfPCNGc4ddPf1+VRX8Ytw/5xqehfPRrCr53Oi+cwpw= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=