Documentation ¶
Overview ¶
* @Author: SpenserCai * @Date: 2023-08-17 00:40:47 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-09-24 00:43:58 * @Description: file content
* @Author: SpenserCai * @Date: 2023-08-17 00:30:18 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-09-25 20:57:31 * @Description: file content
* @Author: SpenserCai * @Date: 2023-08-17 00:38:37 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-08-17 00:40:30 * @Description: file content
Index ¶
- func ConvertBase64ToBytes(base64Str string) ([]byte, error)
- func ConvertBytesToBase64(data []byte) string
- func FormatCommand(cmdName string) string
- func GetImageBase64(url string) (string, error)
- func GetImageBytesFromUrl(url string) ([]byte, error)
- func GetImageReaderByBase64(b64 string) (*bytes.Reader, error)
- func GetImageSizeFromBase64(base64Str string) (int, int, error)
- func GetJsonReaderByJsonString(jsonStr string) (*strings.Reader, error)
- func IsJsonString(str string) bool
- func IsUrl(str string) bool
- func IsZeroValue(value interface{}) bool
- func MergeImageFromBase64(base64List []string) (string, error)
- func ResizeImage(inputImage image.Image, scalePercent float64) (image.Image, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBase64ToBytes ¶
func ConvertBytesToBase64 ¶
func FormatCommand ¶
如果name中有_则用下划线分割后每个首字母专大写,如果没有_则直接首字母转大写
func GetImageBase64 ¶
func GetImageBytesFromUrl ¶
func GetImageSizeFromBase64 ¶ added in v0.5.3
func GetJsonReaderByJsonString ¶ added in v0.4.1
func IsZeroValue ¶ added in v0.3.0
func IsZeroValue(value interface{}) bool
func MergeImageFromBase64 ¶ added in v0.8.2
图片合并
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.