protofilehandler

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package protofilehandler provides a utility for reading and writing protos into zipped or unzipped textproto or binproto files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadProtoFromFile

func ReadProtoFromFile(filePath string, inputProto proto.Message) error

ReadProtoFromFile reads a proto message from a .textproto or .binproto file. If the file is gzipped, it's unzipped first.

func WriteProtoToFile

func WriteProtoToFile(filePath string, outputProto proto.Message) error

WriteProtoToFile writes a proto message from a .textproto or .binproto file. If the file name additionally has the .gz suffix, it's zipped before writing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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