Documentation
¶
Overview ¶
Package protoc provides utilities for installing the protoc tool.
Index ¶
- func BinaryPath(version string) (string, error)
- func BinaryPathOrSystem(pc *config.Protoc) (string, error)
- func Install(ctx context.Context, protoc *config.Protoc) error
- func InstallDir(version string) (string, error)
- func Run(ctx context.Context, env map[string]string, protoc *config.Protoc, ...) error
- func RunOrSystem(ctx context.Context, env map[string]string, pc *config.Protoc, args ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryPath ¶ added in v0.38.0
BinaryPath returns the absolute path to the protoc binary for the given version.
func BinaryPathOrSystem ¶ added in v0.38.0
BinaryPathOrSystem returns the path to the configured protoc binary if pc is non-nil and pc.Version is not empty, or falls back to looking up "protoc" in PATH.
func InstallDir ¶
InstallDir returns the directory where the protoc binary should be installed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.