GithubHelp home page GithubHelp logo

emacs-go-eldoc's Introduction

go-eldoc.el travis badge melpa badge melpa stable badge

Introduction

go-eldoc.el provides eldoc for Go language. go-eldoc.el shows type information for variable, functions and current argument position of function.

Screenshot

Argument Type of Function

Screenshot of showing argument type of function

Variable Type Information

Screenshot of showing variable type information

Return Value Type

Screenshot of showing return value type

Dependency

You can install go-mode with package.el from MELPA. And you can install gocode by go get as below.

% go get -u github.com/nsf/gocode

Installation

You can install go-eldoc.el from MELPA with package.el.

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(package-refresh-contents)

evaluate this code and M-x package-install go-eldoc.

Setup

Call go-eldoc-setup function at go-mode-hook

(require 'go-eldoc) ;; Don't need to require, if you install by package.el
(add-hook 'go-mode-hook 'go-eldoc-setup)

Customize

You can change face of current argument position by eldoc-highlight-function-argument like this.

(set-face-attribute 'eldoc-highlight-function-argument nil
                    :underline t :foreground "green"
                    :weight 'bold)
go-eldoc-gocode(Default: gocode)

gocode location. You need not to set this variable if you set ($GOPATH/bin) to PATH environment variable correctly.

go-eldoc-gocode-args(Default: nil)

Arguments of gocode command. Type of this variable is list of strings.

emacs-go-eldoc's People

Contributors

dominikh avatar kostya-sh avatar purcell avatar syohex avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.