Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IMG_DIR 默认路径 IMG_DIR string = "./data/files" )
Variables ¶
This section is empty.
Functions ¶
func GetRet4Ckeditor ¶
GetRet4Ckeditor Ckeditor将结果转化为[]byte放回
func GetRet4Editormd ¶
GetRet4Editormd Editormd将json字符串转为[]byte
Types ¶
type FileContent ¶
FileContent 存储文件信息
type ImageHandle ¶
type ImageHandle struct { MaxSize int64 // contains filtered or unexported fields }
func (*ImageHandle) ImageUpload ¶
func (h *ImageHandle) ImageUpload(rw http.ResponseWriter, req *http.Request)
ImageUpload 处理图片上传
func (*ImageHandle) ImageView ¶
func (h *ImageHandle) ImageView(w http.ResponseWriter, r *http.Request)
ImageView 查看图片
func (*ImageHandle) ServeHTTP ¶
func (h *ImageHandle) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type ImageHandleInfo ¶
ImageHandleInfo 文本上传类型定义
Click to show internal directories.
Click to hide internal directories.