Documentation ¶
Overview ¶
GoTab is helper program that provides information for tab completion on the Go command.
To install:
- Build the gotab binary and place it in your PATH.
- Add the following to your bashrc file: complete -C gotab -o nospace go
This program works by taking advantage of the built-in complete command for bash. The complete command above informs bash to call gotab for suggestions anytime tab completion is used on the go binary. When gotab is called by bash, it will be provided with the environment variables COMP_LINE and COMP_POINT where COMP_LINE contains the user's current command line and COMP_POINT points to the location of the user's cursor. This program ignores any characters in COMP_LINE that lies beyond COMP_POINT.
Click to show internal directories.
Click to hide internal directories.