protoc

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package protoc provides utilities for installing the protoc tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(ctx context.Context, protoc *config.Protoc) error

Install installs the protoc tool.

func InstallDir

func InstallDir(version string) (string, error)

InstallDir returns the directory where the protoc binary should be installed.

func Run

func Run(ctx context.Context, env map[string]string, protoc *config.Protoc, args ...string) error

Run executes protoc with the given version and arguments.

func RunOrSystem

func RunOrSystem(ctx context.Context, env map[string]string, pc *config.Protoc, args ...string) error

RunOrSystem executes the configured protoc tool if pc is non-nil, or falls back to executing system "protoc".

Types

This section is empty.

Jump to

Keyboard shortcuts

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