mirror of
https://github.com/woodchen-ink/random-api-go.git
synced 2025-07-18 13:52:02 +08:00
21 lines
215 B
Go
21 lines
215 B
Go
package config
|
|
|
|
import (
|
|
"math/rand"
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
Port = ":5003"
|
|
RequestTimeout = 10 * time.Second
|
|
EnvBaseURL = "BASE_URL"
|
|
)
|
|
|
|
var (
|
|
RNG *rand.Rand
|
|
)
|
|
|
|
func InitRNG(r *rand.Rand) {
|
|
RNG = r
|
|
}
|