MCPcopy Index your code
hub / github.com/LumaAI-API/Luma-API / GetOrDefaultString

Function GetOrDefaultString

common/utils.go:139–144  ·  view source on GitHub ↗
(env string, defaultValue string)

Source from the content-addressed store, hash-verified

137}
138
139func GetOrDefaultString(env string, defaultValue string) string {
140 if env == "" || os.Getenv(env) == "" {
141 return defaultValue
142 }
143 return os.Getenv(env)
144}
145
146func GetJsonString(data any) string {
147 if data == nil {

Callers 1

envs.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected