Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TemplateString ¶
TemplateString return string with template str
Types ¶
type IImg_service ¶
func NewImgHostService ¶
func NewImgHostService() IImg_service
func NewImgLocalService ¶
func NewImgLocalService() IImg_service
type ImgHostService ¶
type ImgHostService struct{}
func (*ImgHostService) Delete ¶
func (i *ImgHostService) Delete(path string) error
func (*ImgHostService) Save ¶
func (i *ImgHostService) Save(fileHeader *multipart.FileHeader) (string, error)
type ImgLocalService ¶
type ImgLocalService struct{}
func (*ImgLocalService) Delete ¶
func (i *ImgLocalService) Delete(path string) error
Delete a file with path
func (*ImgLocalService) Save ¶
func (i *ImgLocalService) Save(fileHeader *multipart.FileHeader) (string, error)
Save a file and return path and error
Click to show internal directories.
Click to hide internal directories.