Documentation
¶
Overview ¶
Package proto is a transition package for methods from gogo that are used within buildkit and don't have an existing method in the standard protobuf library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalJSONEnum ¶
UnmarshalJSONEnum is a helper function to simplify recovering enum int values from their JSON-encoded representation. Given a map from the enum's symbolic names to its int values, and a byte buffer containing the JSON-encoded value, it returns an int32 that can be cast to the enum type by the caller.
The function can deal with both JSON representations, numeric and symbolic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.