diff --git a/pages/common/go-doc.md b/pages/common/go-doc.md new file mode 100644 index 000000000..c128d6a8f --- /dev/null +++ b/pages/common/go-doc.md @@ -0,0 +1,12 @@ +# go doc + +> Tool for showing documentation for package or symbol. +> More information: . + +- Show documentation for {{Foo}} in the current package: + +`go doc {{Foo}}` + +- Show documentation and method summary for {{json.Number}}: + +`go doc {{json.Number}}`