proto

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package proto provides helper functions for working with protobuf files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gather

func Gather(root, relPath string) ([]string, error)

Gather returns a sorted list of proto files in the given root directory, ensuring that subpackage protos (e.g., in a "schema" directory) are included in the generation.

recursion is disabled for certain base paths in nonRecursivePaths.

func Search(googleapisDir, apiPath string, regex *regexp.Regexp) (string, bool, error)

Search looks for a regex in the first .proto file in the API directory. Returns the value of the first match found, and a boolean indicating if a match was found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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