19 lines
331 B
Go
19 lines
331 B
Go
package forward
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
const (
|
|
DefaultSuperviseTarget = "https://59.202.52.129:28212/province/supervise/data"
|
|
DefaultFileTarget = "https://59.202.52.129:28211/mng/file/auth/upload"
|
|
)
|
|
|
|
func env(key, def string) string {
|
|
if v := strings.TrimSpace(os.Getenv(key)); v != "" {
|
|
return v
|
|
}
|
|
return def
|
|
}
|