protoc-gen-go-mock

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 6 Imported by: 0

README

protoc-gen-go-mock

Go Reference Go Report Card

This tool generates Go language bindings of services in protobuf definition files for mocking gRPC.

Installation

go install github.com/kw510/protoc-gen-go-mock@latest

Also required:

Usage

With protoc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
protoc --go_out=.examples \
       --go-grpc_out=.examples \
       --go-mock_out=.examples \
       .examples/petstore.proto

Building locally

mkdir .build
export PATH=$PATH:$(pwd)/.build
go build -o ./.build

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL