Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/widge-tech/widge.go.grpc.testing

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/widge-tech/widge.go.grpc.testing

  • v0.0.0-20220401154640-9ef0770cc1b1
  • Source
  • Go
  • Socket score

Version published
Created
Source

Widge.Go.Grpc.Testing

grpc go官方文档

开发依赖

2.1 Golang 环境

# Set GOPATH and add GOPATH/bin to PATH
export PATH="$PATH:$(go env GOPATH)/bin"

2.2 Protocol buffer 编译器

# MacOS
brew install protobuf

# Linux
apt install -y protobuf-compiler

或者下载可执行文件自行配置

2.3 Go 插件

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

proto 编译

Windows 运行 powershell 脚本,需要先设置Set-ExecutionPolicy Unrestricted

# MacOS & Linux
bash ./build.bash

# Windows
.\build.ps1

运行

go mod tidy
go run .

打包

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build

构建镜像

docker build --pull --rm -f "Dockerfile" -t <name=grpc.testing>:<version=latest> <workspace=".">
# example: docker build --pull --rm -f "Dockerfile" -t grpc.testing:latest "."

FAQs

Package last updated on 01 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc