The GOPROXY environment variable may now be set to a commaseparated list of proxy URLs or the special token direct, The go env command now accepts a w flag to set the peruser default value of an environment variable recognized by the go command, and a corresponding u flag to unset a previouslyset default Defaults set via go envw are stored in the go/env file withinIn summary, due to the above two problems, I think it is dangerous to make the proxygolangorg the default value of the GOPROXY So, have you really decided to do this? osEnviron () This returns all the environment variable which are set in key=value format osLookupEnv () This function combines the functionality of checking whether such variable exists, if yes then it returns the value osClearenv () This method deletes all the environment variables and is useful when we are writing tests Still Writing Operator It S Time To Use Kubebuilder Goproxy default value