Skip to content

Commit

Permalink
+ func: golang: godoc: alias that pages the "go doc" output
Browse files Browse the repository at this point in the history
we usually want to have a pager when viewing this.  our $LESS defaults
should already not invoke the pager if less than a screenful.
  • Loading branch information
smemsh committed Sep 12, 2024
1 parent 0471f62 commit 4542c16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions func.d/golang
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#

godoc ()
{
go doc "$@" | less
}

0 comments on commit 4542c16

Please sign in to comment.