form

package
v0.0.0-...-b804f52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2023 License: MulanPSL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is form codec name
	Name = "x-www-form-urlencoded"
)

Variables

This section is empty.

Functions

func EncodeField

func EncodeField(fieldDescriptor protoreflect.FieldDescriptor, value protoreflect.Value) (string, error)

EncodeField encode proto message filed

func EncodeMap

func EncodeMap(msg proto.Message) (url.Values, error)

EncodeMap encode proto message to url query.

func MapProto

func MapProto(msg proto.Message, values map[string][]string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL