ticcky / goimports Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bradfitz/goimports
Tool to fix (add, remove) your Go imports automatically.
License: BSD 3-Clause "New" or "Revised" License
This project forked from bradfitz/goimports
Tool to fix (add, remove) your Go imports automatically.
License: BSD 3-Clause "New" or "Revised" License
This tool updates your Go import lines, adding missing ones and removing unreferenced ones. $ go get github.com/bradfitz/goimports It's a fork of gofmt, and will also format your code, so it can be used as a replacement for your gofmt-on-save hook in your editor of choice. For emacs, make sure you have the latest (Go 1.2) go-mode.el: https://go.googlecode.com/hg/misc/emacs/go-mode.el Then in your .emacs file: (setq gofmt-command "goimports") (add-to-list 'load-path "/home/you/goroot/misc/emacs/") (require 'go-mode-load) (add-hook 'before-save-hook 'gofmt-before-save) For vim, set "gofmt_command" to "goimports": https://code.google.com/p/go/source/detail?r=39c724dd7f252 https://code.google.com/p/go/source/browse#hg%2Fmisc%2Fvim etc For Sublime Text 3 get your plugin at: https://github.com/ticcky/sublime_goimports.git For other editors, you probably know what to do. Happy hacking! Caveats: For removal, it assumes the import path base matches the package name, which is best practice anyway, like: import "github.com/you/foo" // assumes this is package "foo" If they don't match, explicitly name the package name in your import line: import foo "github.com/you/not-quite-foo" These caveats might be fixed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.