formpb

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FORMPb

func (*FORMPb) ContentType

func (*FORMPb) ContentType() string

ContentType always returns "application/x-www-form-urlencoded".

func (*FORMPb) Marshal

func (j *FORMPb) Marshal(v interface{}) ([]byte, error)

Marshal marshals "v" into JSON Currently it can marshal only proto.Message.

func (*FORMPb) NewDecoder

func (j *FORMPb) NewDecoder(r io.Reader) marshaler.Decoder

NewDecoder returns a Decoder which reads form data stream from "r".

func (*FORMPb) NewEncoder

func (j *FORMPb) NewEncoder(w io.Writer) marshaler.Encoder

NewEncoder returns an Encoder which writes JSON stream into "w".

func (*FORMPb) Unmarshal

func (j *FORMPb) Unmarshal(data []byte, v interface{}) error

Unmarshal not realized for the moment

Jump to

Keyboard shortcuts

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