[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] getenv function.
commit c38bb489b2b4cf1b055363af27a8e2609ba40076
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits