소스 검색

godoc: add page (#2170)

danieldc 6 년 전
부모
커밋
a1e93718c2
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      pages/common/godoc.md

+ 15 - 0
pages/common/godoc.md

@@ -0,0 +1,15 @@
+# godoc
+
+> Show documentation for go packages.
+
+- Display help for package "fmt":
+
+`godoc {{fmt}}`
+
+- Display help for the function "Printf" of "fmt" package:
+
+`godoc {{fmt}} {{Printf}}`
+
+- Serve documentation as a web server on port "6060":
+
+`godoc -http=:{{6060}}`