textproto-validator

command module
v0.0.0-...-15e24d0 Latest Latest
Warning

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

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

README

textproto-validator

test Coverage Status

Textproto Validator is a tool to verify the Text Format of protobuf data.

A file is expected to contain a proto-message and a proto-file comment near the top section of the file. The validator will attempt to compile proto-file and parse the textproto into the proto-message.

Compiling

go test ./...
go build ./...

Validating a file

Example example.textproto file:

# proto-file: example.proto
# proto-message: Example

name: "foo"

An example.proto could contain:

syntax = "proto3";
package example;
message Example {
    string name = 1;
}
$ ./textproto-validator example.textproto 
2024/03/26 05:41:58 Successfully validated example.textproto

Documentation

Overview

textproto-validator is a tool to verify the text format of protobuf data.

Jump to

Keyboard shortcuts

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