From a12635222af807bae6010bfc50b8c8d9cd8d3dff Mon Sep 17 00:00:00 2001 From: William Cotton Date: Fri, 12 Oct 2018 01:17:06 +0200 Subject: [PATCH] Updated cgo (markdown) --- cgo.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgo.md b/cgo.md index b0df9019..daf2afa5 100644 --- a/cgo.md +++ b/cgo.md @@ -327,7 +327,8 @@ in the preamble (see above for a complete example). In order to use cgo on Windows, you'll also need to first install a gcc compiler (for instance, mingw-w64) and have gcc.exe (etc.) in your PATH environment variable before compiling with cgo will work. ### environmental variables -Go doesn't see variables set by C.setenv +Go os.Getenv() doesn't see variables set by C.setenv() + ### tests _test.go files can't use cgo. \ No newline at end of file