Documentation ¶
Overview ¶
* @Author: SpenserCai * @Date: 2023-08-17 00:40:47 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-08-30 09:04:38 * @Description: file content
* @Author: SpenserCai * @Date: 2023-08-17 00:30:18 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-09-04 14:35:21 * @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
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.