Categorygithub.com/catbugdemo/utilx
modulepackage
1.0.0
Repository: https://github.com/catbugdemo/utilx.git
Documentation: pkg.go.dev

# README

utilx

Build Status Go Report Card

English | 简体中文

我在学习中总结的一些公用方法

# Functions

CheckNotExist 判断文件是否存在.
FloatIsEqual 判断 float 是否相等.
HTTPostJSON url 地址 ,value 需要传递的数据 , dest 需要绑定的数据.
JSONFormatStr 以 jsonx 格式化返回结构体 v- 结构体.
Mkdir 创建文件夹.
RandNum 生成一个随机数 ,范围 [min,max).
TGetRedigo 测试中使用模拟缓存.
TGinGet 测试并返回 gin Get.
TGinPost 当测试 c.Bind() 头没有绑定 application/json 无法获取参数 测试 gin Post url 地址,value 测试数据 , handlers.

# Constants

MIN 最小判断精度.