Documentation ¶
Overview ¶
Package datawkt stores the sources of the Well-Known Types, and provides helper functionality around them.
Index ¶
Constants ¶
View Source
const Version = "29.1"
Version is the version of github.com/protocolbuffers/protobuf used to extract the Well-Known Types.
Variables ¶
View Source
var ( // ReadBucket is the storage.ReadBucket with the static data generated for this package. ReadBucket storage.ReadBucket // AllFilePaths are all Well-Known Type file paths in sorted order. AllFilePaths = []string{ "google/protobuf/any.proto", "google/protobuf/api.proto", "google/protobuf/compiler/plugin.proto", "google/protobuf/cpp_features.proto", "google/protobuf/descriptor.proto", "google/protobuf/duration.proto", "google/protobuf/empty.proto", "google/protobuf/field_mask.proto", "google/protobuf/go_features.proto", "google/protobuf/java_features.proto", "google/protobuf/source_context.proto", "google/protobuf/struct.proto", "google/protobuf/timestamp.proto", "google/protobuf/type.proto", "google/protobuf/wrappers.proto", } )
Functions ¶
func EnumFilePath ¶ added in v1.10.0
EnumFilePath gets the file path for the given enum, if the enum exists.
func Exists ¶
Exists returns true if the given path exists in the static data.
The path is normalized within this function.
func FileImports ¶ added in v1.32.0
FileImports gets the imports for the given file path, if the file path exists.
func MessageFilePath ¶ added in v1.10.0
MessageFilePath gets the file path for the given message, if the message exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.