- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 546 for GetEnv (0.16 sec)
-
src/os/env.go
// be false. func LookupEnv(key string) (string, bool) { testlog.Getenv(key) return syscall.Getenv(key) } // Setenv sets the value of the environment variable named by the key. // It returns an error, if any. func Setenv(key, value string) error { err := syscall.Setenv(key, value) if err != nil { return NewSyscallError("setenv", err) } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 3.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_setenv.txt
"os" "testing" ) func FuzzA(f *testing.F) { if s := os.Getenv("TEST_FUZZ_SETENV_A"); isWorker() && s == "" { f.Fatal("environment variable not set") } else if !isWorker() && s != "" { f.Fatal("environment variable already set") } f.Setenv("TEST_FUZZ_SETENV_A", "A") if os.Getenv("TEST_FUZZ_SETENV_A") == "" { f.Fatal("Setenv did not set environment variable") } f.Fuzz(func(*testing.T, []byte) {}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 943 bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt
val isCiServer = CI_ENVIRONMENT_VARIABLE in System.getenv() val isTravis = "TRAVIS" in System.getenv() val isGhActions = "GITHUB_ACTIONS" in System.getenv() val isTeamCity = "TEAMCITY_VERSION" in System.getenv() val isTeamCityParallelTestsEnabled get() = "TEAMCITY_PARALLEL_TESTS_ENABLED" in System.getenv() val isCodeQl: Boolean by lazy {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 16:58:31 UTC 2024 - 4.8K bytes - Viewed (0) -
platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/ReflectiveEnvironment.java
public void unsetenv(String name) { Map<String, String> map = getEnv(); map.remove(name); if (OperatingSystem.current().isWindows()) { Map<String, String> env2 = getWindowsEnv(); env2.remove(name); } } public void setenv(String name, String value) { Map<String, String> map = getEnv(); map.put(name, value);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:06:40 UTC 2023 - 2.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/env_plan9.go
// license that can be found in the LICENSE file. // Plan 9 environment variables. package plan9 import ( "syscall" ) func Getenv(key string) (value string, found bool) { return syscall.Getenv(key) } func Setenv(key, value string) error { return syscall.Setenv(key, value) } func Clearenv() { syscall.Clearenv() } func Environ() []string { return syscall.Environ() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 15 19:02:39 UTC 2021 - 555 bytes - Viewed (0) -
src/syscall/syscall_test.go
) func testSetGetenv(t *testing.T, key, value string) { err := syscall.Setenv(key, value) if err != nil { t.Fatalf("Setenv failed to set %q: %v", value, err) } newvalue, found := syscall.Getenv(key) if !found { t.Fatalf("Getenv failed to find %v variable (want value %q)", key, value) } if newvalue != value { t.Fatalf("Getenv(%v) = %q; want %q", key, newvalue, value) } } func TestEnv(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Mar 14 17:56:50 UTC 2021 - 1.4K bytes - Viewed (0) -
test/fixedbugs/issue36705.go
package main // #include <stdlib.h> // #include <unistd.h> import "C" import "os" func main() { os.Setenv("FOO", "bar") s := C.GoString(C.getenv(C.CString("FOO"))) if s != "bar" { panic("bad setenv, environment variable only has value \"" + s + "\"") } os.Unsetenv("FOO") s = C.GoString(C.getenv(C.CString("FOO"))) if s != "" { panic("bad unsetenv, environment variable still has value \"" + s + "\"") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 649 bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/EnvVariableRead.groovy
package org.gradle.internal.cc.impl.inputs.undeclared abstract class EnvVariableRead extends BuildInputRead { static EnvVariableRead getEnv(String name) { return new EnvVariableRead() { @Override String getKotlinExpression() { return "System.getenv(\"$name\")" } } } static EnvVariableRead getEnvGet(String name) { return new EnvVariableRead() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.7K bytes - Viewed (0) -
samples/bookinfo/src/reviews/reviews-application/src/main/java/application/rest/LibertyRestEndpoint.java
private final static String star_color = System.getenv("STAR_COLOR") == null ? "black" : System.getenv("STAR_COLOR"); private final static String services_domain = System.getenv("SERVICES_DOMAIN") == null ? "" : ("." + System.getenv("SERVICES_DOMAIN"));
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 15 22:25:32 UTC 2023 - 8.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/env_unix.go
// Unix environment variables. package unix import "syscall" func Getenv(key string) (value string, found bool) { return syscall.Getenv(key) } func Setenv(key, value string) error { return syscall.Setenv(key, value) } func Clearenv() { syscall.Clearenv() } func Environ() []string { return syscall.Environ() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 645 bytes - Viewed (0)