password generator (#395)

This commit is contained in:
Asim Aslam
2022-03-02 10:11:46 +00:00
committed by GitHub
parent 9b61a8d28e
commit 7ab702dd5b
13 changed files with 466 additions and 0 deletions

27
password/Makefile Normal file
View File

@@ -0,0 +1,27 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go install github.com/golang/protobuf/protoc-gen-go@latest
go install github.com/micro/micro/v3/cmd/protoc-gen-micro@latest
go install github.com/micro/micro/v3/cmd/protoc-gen-openapi@latest
.PHONY: api
api:
protoc --openapi_out=. --proto_path=. proto/password.proto
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/password.proto
.PHONY: build
build:
go build -o password *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t password:latest