简体   繁体   中英

Go language's godoc on command prompt

    godoc fmt

This command displays the documentation of fmt package. But this has a lot of content and does not support paging control(/p) of command prompt.

    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. press the spacebar to move to the next page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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