MCPcopy
hub / github.com/minio/minio-go / envOr

Function envOr

cmd/rdma-test/main.go:31–36  ·  view source on GitHub ↗
(k, d string)

Source from the content-addressed store, hash-verified

29)
30
31func envOr(k, d string) string {
32 if v := os.Getenv(k); v != "" {
33 return v
34 }
35 return d
36}
37
38func main() {
39 if err := run(); err != nil {

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected