MCPcopy Index your code
hub / github.com/codealong-dev/ride-sharing / GetString

Function GetString

shared/env/env.go:11–18  ·  view source on GitHub ↗
(key, fallback string)

Source from the content-addressed store, hash-verified

9)
10
11func GetString(key, fallback string) string {
12 val, ok := os.LookupEnv(key)
13 if !ok {
14 return fallback
15 }
16
17 return val
18}
19
20func GetInt(key string, fallback int) int {
21 val, ok := os.LookupEnv(key)

Callers 8

GetRouteMethod · 0.92
mainFunction · 0.92
handleStripeWebhookFunction · 0.92
main.goFile · 0.92
mainFunction · 0.92
main.goFile · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected