MCPcopy Create free account
hub / github.com/JordanCoin/codemap / envInt

Function envInt

blast_radius.go:348–358  ·  view source on GitHub ↗
(key string, fallback int)

Source from the content-addressed store, hash-verified

346}
347
348func envInt(key string, fallback int) int {
349 raw := strings.TrimSpace(os.Getenv(key))
350 if raw == "" {
351 return fallback
352 }
353 value, err := strconv.Atoi(raw)
354 if err != nil {
355 return fallback
356 }
357 return value
358}
359
360func clampBlastRadiusLimits(limits blastRadiusLimits) blastRadiusLimits {
361 if limits.MaxTotalChars < 0 {

Callers 1

defaultBlastRadiusLimitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected