Documentation ¶
Index ¶
- Variables
- func BytesToString(b []byte) string
- func CloneRequest(r *http.Request) (*http.Request, error)
- func GetBytes(v interface{}) (b []byte, ok bool)
- func GetNoPortExists() string
- func GetString(v interface{}) (s string, ok bool)
- func LoopElem(v reflect.Value) reflect.Value
- func NewPtrVal(defValue interface{}) interface{}
- func StringToBytes(s string) (b []byte)
- type A
- type FormFile
- type FormMem
- type FormType
- type H
- type Need
- type ReadCloseFail
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownType = errors.New("unknown type")
ErrUnknownType 未知错误类型
Functions ¶
func NewPtrVal ¶ added in v0.0.2
func NewPtrVal(defValue interface{}) interface{}
NewPtrVal 新建这个类型的指针变量并赋值
func StringToBytes ¶ added in v0.0.2
StringToBytes 没有内存开销的转换
Types ¶
type FormType ¶ added in v0.0.5
type FormType struct { FileName string //filename ContentType string //Content-Type:Mime-Type File interface{} //FromFile | FromMem (这里就是您的从文件地址中读取和从内存中读取) }
FormType 自定义formdata文件名和流的类型
Click to show internal directories.
Click to hide internal directories.