Download content/flask/bore/server/utils.go from ColaCoca/Jeju-ChatBot: direct link, hf CLI and curl.
- Browser
- Download file 232 Bytes
-
https://huggingface.co/ColaCoca/Jeju-ChatBot/resolve/main/content/flask/bore/server/utils.go
- Command line
-
hf download hf://ColaCoca/Jeju-ChatBot/content/flask/bore/server/utils.go
-
curl -L -o utils.go https://huggingface.co/ColaCoca/Jeju-ChatBot/resolve/main/content/flask/bore/server/utils.go
232 Bytes
| package server | |
| import ( | |
| crand "crypto/rand" | |
| "fmt" | |
| "math/rand" | |
| ) | |
| func randomPort(min, max int) int { | |
| return rand.Intn(max-min) + min | |
| } | |
| func randID() string { | |
| b := make([]byte, 4) | |
| crand.Read(b) | |
| return fmt.Sprintf("%x", b) | |
| } | |