Documentation ¶
Index ¶
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.