Explorar o código

godoc: add page (#2170)

danieldc %!s(int64=6) %!d(string=hai) anos
pai
achega
a1e93718c2
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  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}}`