add google search (#242)

* add google search

* fix git ignore

* Charge 1c for search queries
This commit is contained in:
Asim Aslam
2021-10-25 12:16:41 +01:00
committed by GitHub
parent 30673f9837
commit 0bfe1e3c19
13 changed files with 656 additions and 0 deletions

28
google/Makefile Normal file
View File

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