package prototext

Import Path
	google.golang.org/protobuf/encoding/prototext (on go.dev)

Dependency Relation
	imports 18 packages, and imported by 2 packages

Involved Source Files decode.go Package prototext marshals and unmarshals protocol buffer messages as the textproto format. encode.go
Package-Level Type Names (total 4, in which 2 are exported)
/* sort exporteds by: | */
MarshalOptions is a configurable text format marshaler. AllowPartial allows messages that have missing required fields to marshal without returning an error. If AllowPartial is false (the default), Marshal will return error if there are any missing required fields. EmitASCII specifies whether to format strings and bytes as ASCII only as opposed to using UTF-8 encoding when possible. EmitUnknown specifies whether to emit unknown fields in the output. If specified, the unmarshaler may be unable to parse the output. The default is to exclude unknown fields. Indent specifies the set of indentation characters to use in a multiline formatted output such that every entry is preceded by Indent and terminated by a newline. If non-empty, then Multiline is treated as true. Indent can only be composed of space or tab characters. Multiline specifies whether the marshaler should format the output in indented-form with every textual element on a new line. If Indent is an empty string, then an arbitrary indent is chosen. NoUnkeyedLiterals pragma.NoUnkeyedLiterals Resolver is used for looking up types when expanding google.protobuf.Any messages. If nil, this defaults to using protoregistry.GlobalTypes. Format formats the message as a string. This method is only intended for human consumption and ignores errors. Do not depend on the output being stable. It may change over time across different versions of the program. Marshal writes the given proto.Message in textproto format using options in MarshalOptions object. Do not depend on the output being stable. It may change over time across different versions of the program.
UnmarshalOptions is a configurable textproto format unmarshaler. If AllowPartial is set, input for messages that will result in missing required fields will not return an error. If DiscardUnknown is set, unknown fields are ignored. NoUnkeyedLiterals pragma.NoUnkeyedLiterals Resolver is used for looking up types when unmarshaling google.protobuf.Any messages or extension fields. If nil, this defaults to using protoregistry.GlobalTypes. Unmarshal reads the given []byte and populates the given proto.Message using options in UnmarshalOptions object.
Package-Level Functions (total 3, all are exported)
Format formats the message as a multiline string. This function is only intended for human consumption and ignores errors. Do not depend on the output being stable. It may change over time across different versions of the program.
Marshal writes the given proto.Message in textproto format using default options. Do not depend on the output being stable. It may change over time across different versions of the program.
Unmarshal reads the given []byte into the given proto.Message.
Package-Level Constants (only one, which is unexported)