Create an index file

godoc

godoc -write_index -index_files={{path/to/file}}

click the source code to copy install godoc on any operating system with command-not-found.com