From 16c3791dd9c062ac3897b5849bf5ce07c96dc753 Mon Sep 17 00:00:00 2001 From: gonejack Date: Fri, 8 May 2020 20:40:17 +0800 Subject: [PATCH] go-env: add page (#4003) Signed-off-by: gonejack --- pages/common/go-env.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/go-env.md diff --git a/pages/common/go-env.md b/pages/common/go-env.md new file mode 100644 index 0000000000..dbaa076c05 --- /dev/null +++ b/pages/common/go-env.md @@ -0,0 +1,16 @@ +# go env + +> Tool for printing Go environment information. +> More information: . + +- Show all go environment information: + +`go env` + +- Show specific environment variable: + +`go env {{GOPATH}}` + +- Set go environment value: + +`go env -w {{NAME}}={{VALUE}}`