encode

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

BytesToString 没有内存开销的转换

func LoopElem

func LoopElem(v reflect.Value) reflect.Value

reflect loopElem pointer dereference

func StringToBytes

func StringToBytes(s string) (b []byte)

StringToBytes 没有内存开销的转换

Types

type File

type File struct {
	Name string
	Data []byte
}

the post request upload file object

type FormData

type FormData struct {
	// contains filtered or unexported fields
}

func (*FormData) Encode

func (f *FormData) Encode(w io.Writer) error

func (*FormData) SetValue

func (x *FormData) SetValue(v interface{})

type XWwwFormUrlencoded

type XWwwFormUrlencoded struct {
	// contains filtered or unexported fields
}

func (*XWwwFormUrlencoded) Encode

func (x *XWwwFormUrlencoded) Encode(w io.Writer) error

func (*XWwwFormUrlencoded) SetValue

func (x *XWwwFormUrlencoded) SetValue(v interface{})

Jump to

Keyboard shortcuts

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