protoc-gen-jsonnet

command module
v0.0.0-...-74e99e7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: BSD-3-Clause Imports: 17 Imported by: 0

README

protoc-gen-jsonnet

Generate Jsonnet definition for JSON representation of protobuf object

Generated message docs

Assuming protobuf

enum EnumValues {
    OK = 0
}

message Test {
    string v = 1;
    EnumValues e = 2;
}

Construct this message in Jsonnet by

local test = import "test.jsonnet";

test.Test.new(v="test", e=test.EnumValues.OK)
// or
test.Test.new()
    + test.Test.withV("test")
    + test.Test.withE(test.EnumValues.OK)

TODO

  • WKT

License

Licensed under 3 clause BSD license with output exception, same as Protobuf itself.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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