简体   繁体   English

Go 语言的命令提示符上的 godoc

[英]Go language's godoc on command prompt

    godoc fmt

This command displays the documentation of fmt package.此命令显示 fmt package 的文档。 But this has a lot of content and does not support paging control(/p) of command prompt.但是这个内容很多,不支持命令提示符的分页控制(/p)。

    godoc fmt /p

Please let me know how can I get paged documentation in command prompt.请让我知道如何在命令提示符下获取分页文档。

you can try this:你可以试试这个:

godoc fmt | more

more is not specific for "godoc" and should work for the output of any command. more不是特定于“godoc”的,应该适用于任何命令的 output。 press the spacebar to move to the next page.按空格键移动到下一页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM