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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址