Documentation
¶
Index ¶
- func BadResponse(c *gin.Context, err error)
- func BuildURLParams(baseURL string, params map[string]string) (string, error)
- func CheckPort(host string, port int, timeout time.Duration) error
- func CreateFile(filePath string, data []byte) error
- func DownloadFile(url string, filePath string) error
- func DownloadFileWithHeaders(url string, filePath string, headers map[string]string, fileSize int64) error
- func FileExists(filename string) bool
- func Format(s string, args ...interface{}) string
- func GetDefault(data any, def string) string
- func GetJson(url string, headers map[string]string, v any) error
- func IsWinPlatform() bool
- func SendResponse(c *gin.Context, data any)
- func Unzip(src string, dest string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadResponse ¶
BadResponse Return error status code and error message
func CreateFile ¶
func DownloadFile ¶
func DownloadFileWithHeaders ¶
func FileExists ¶
func GetDefault ¶
GetDefault allows the data param to be nil
func IsWinPlatform ¶
func IsWinPlatform() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.