1 Star 0 Fork 0

zengxinqian/Http Astract Layer Library

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
utils.go 352 Bytes
Copy Edit Raw Blame History
zengxinqian authored 2025-11-07 07:59 +08:00 . 1. Project init.
package router
import (
"math/rand/v2"
"strings"
)
func validatePath(path string) {
switch {
case len(path) == 0 || !strings.HasPrefix(path, "/"):
panic("path must begin with '/' in path '" + path + "'")
}
}
func bytesRand(dst []byte) []byte {
size := len(dst)
for i := 0; i < size; i++ {
dst[i] = rand.N[byte](0xFF)
}
return dst
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zengxinqian/hall.git
git@gitee.com:zengxinqian/hall.git
zengxinqian
hall
Http Astract Layer Library
v0.0.11

Search