protobufgoogle.golang.org/protobuf/internal/detectknown Index | Files

package detectknown

import "google.golang.org/protobuf/internal/detectknown"

Package detectknown provides functionality for detecting well-known types and identifying them by name.

Index

Types

type ProtoFile

type ProtoFile int
const (
	Unknown ProtoFile = iota
	AnyProto
	TimestampProto
	DurationProto
	WrappersProto
	StructProto
	FieldMaskProto
	ApiProto
	TypeProto
	SourceContextProto
	EmptyProto
)

func Which

Which identifies the proto file that a well-known type belongs to. This identifies both enums and messages.

Source Files

detect.go

Version
v1.24.0
Published
May 26, 2020
Platform
darwin/amd64
Imports
1 packages
Last checked
3 hours ago

Tools for package owners.