/helm-go-package

helm sources for Go programming language's package

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

helm-go-package

licence melpa badge melpa stable badge travis build status

helm sources for Go programming language's package.

Requirements

Installation

Manual

Just drop helm-go-package.el. somewhere in your load-path.

(add-to-list 'load-path "~/somewhere")

MELPA

you can install helm-go-package.el from the MELPA repository.

Usage

helm-go-package

Helm for Go programming language's package.

Go local packages

These actions are available.

  • Add a new import
  • Add a new import as
  • Show documentation
  • Display GoDoc
  • Visit package's directory

This persistent action is available.

  • Show documentation

search Go packages on Godoc

These actions are available.

  • Download and install
  • Display GoDoc

Customize

helm-go-package-godoc-browse-url-function

Function to display package documentation on GoDoc. It is browse-url by default.

helm-source-go-package-godoc-description

Face used for Godoc description.

Sample configuration

Add the following to your emacs init file:

(autoload 'helm-go-package "helm-go-package") ;; Not necessary if using ELPA package
(eval-after-load 'go-mode
  '(substitute-key-definition 'go-import-add 'helm-go-package go-mode-map))