...

Source file src/github.com/ory/x/osx/env.go

Documentation: github.com/ory/x/osx

     1  package osx
     2  
     3  import "os"
     4  
     5  // GetenvDefault returns an environment variable or the default value if it is empty.
     6  func GetenvDefault(key string, def string) string {
     7  	if value := os.Getenv(key); value != "" {
     8  		return value
     9  	}
    10  	return def
    11  }
    12  

View as plain text