This is another Go thing I’ve learned at work.
os.Getenv()
and os.Setenv()
call syscall.Getenv()
and syscall.Setenv()
. And inside the syscall package, there is a package-scope lock.
Source: posts/2020/setenv.md
This is another Go thing I’ve learned at work.
os.Getenv()
and os.Setenv()
call syscall.Getenv()
and syscall.Setenv()
. And inside the syscall package, there is a package-scope lock.