Golang生成随机字符串工具类
废话不多说直接上代码:package utils import ( "bytes" "crypto/rand" "math/big" ) func CreateRandomString(len int) string { var container string var str = &qu...
废话不多说直接上代码:package utils import ( "bytes" "crypto/rand" "math/big" ) func CreateRandomString(len int) string { var container string var str = &qu...
最近在写一个Gin和Gorm的项目,里面有用到分页操作,便自己写了一个分页的工具类。分页请求格式:xxx?page=1&limit=10utils/Pagination.gopackage utils import ( "github.com/gin-gonic/gin" "github.com/spf13/cast" ...
很多时候,在winform项目中,为了实现现代化的UI,我们通常会把窗体设置为无边框,然后使用Panel绘制窗体,此时则需要实现拖拽Panel即可拖拽窗体,这里记录一个我用了很久的工具类。using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.T...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Kakkk.Utils { class HttpGetHelp...