textproto

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package textproto provides an interface to parse Protocol Buffers in their textual format.

https://protobuf.dev/reference/protobuf/textformat-spec/

Index

Constants

This section is empty.

Variables

View Source
var TextProtoFileExtensions = []string{"textproto", "textpb"}

TextProtoFileExtensions is the list of all file extensions associated with textproto files.

Functions

This section is empty.

Types

type Parser

type Parser struct{}

Parser provides methods to parse textproto files.

func (*Parser) LoadProtoFiles

func (p *Parser) LoadProtoFiles(filePaths []string) error

LoadProtoFiles loads Protocol Buffer definitions so that the textproto files can be parsed correctly.

func (*Parser) Unmarshal

func (p *Parser) Unmarshal(data []byte, v any) error

Unmarshal unmarshals a textproto file.

Jump to

Keyboard shortcuts

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