Documentation ¶
Overview ¶
@Description https://github.com/iancoleman/strcase @Author renjingneng @CreateTime 2020/8/15 19:37
Index ¶
- func CreateSignWithUrlencode(params map[string]string, token string) string
- func CreateSignWithoutUrlencode(params map[string]string, token string) string
- func GenerateUploadPath(pathType string) string
- func ImageConfig(r io.Reader) (image.Config, string, error)
- func MakeNonce(length int) string
- func MoveUploadedFile(file multipart.File, path string)
- func ToCamel(s string) string
- func ToLowerCamel(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSignWithUrlencode ¶
func CreateSignWithoutUrlencode ¶
* 签名方法 @author yongliang2@leju.com @return string
func GenerateUploadPath ¶
GenerateUploadPath 生成上传路径,XX/upload/pathType/year/month/day/
@Author renjingneng
@CreateTime 2020/8/14 11:07
func ImageConfig ¶
ImageConfig 由于DecodeConfig方法调用需要引入太多包,所以为其包装一个新的方法
@Author renjingneng
@Return
(image.Config) { ColorModel: (*color.modelFunc)(0xc0000062e0)({ f: (func(color.Color) color.Color) 0xb5f400 }), Width: (int) 887, Height: (int) 1920 }
(string) (len=4) "tiff" (error) <nil> @CreateTime 2020/8/14 15:27
func MoveUploadedFile ¶
func ToLowerCamel ¶
ToLowerCamel converts a string to lowerCamelCase
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.