We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0bcbf commit 0e6fdabCopy full SHA for 0e6fdab
snowflake.go
@@ -43,7 +43,14 @@ func MustParse(str string) ID {
43
44
// GetEnv returns the value of the environment variable named by the key and parses it as a snowflake.
45
// returns ID(0) if the environment variable is not set.
46
+// Deprecated: use Getenv instead.
47
func GetEnv(key string) ID {
48
+ return Getenv(key)
49
+}
50
+
51
+// Getenv returns the value of the environment variable named by the key and parses it as a snowflake.
52
+// returns ID(0) if the environment variable is not set.
53
+func Getenv(key string) ID {
54
snowflake, _ := LookupEnv(key)
55
return snowflake
56
}
0 commit comments