commit c38bb489b2b4cf1b055363af27a8e2609ba40076 Author: David Fifield david@bamsoftware.com Date: Mon Jan 28 22:09:26 2013 -0800
getenv function. --- websocket-transport/pt.go | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/websocket-transport/pt.go b/websocket-transport/pt.go index cb349e0..15848d1 100644 --- a/websocket-transport/pt.go +++ b/websocket-transport/pt.go @@ -32,6 +32,10 @@ import ( "strings" )
+func getenv(key string) string { + return os.Getenv(key) +} + // Abort with an ENV-ERROR if the environment variable isn't set. func getenvRequired(key string) string { value := os.Getenv(key)