aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Grant <kennygrant@gmail.com>2017-02-17 22:33:10 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2017-02-17 22:53:38 +0000
commit78d72d5b54f7f041e0fd26e5fdf07d545d00bec0 (patch)
tree2b6384cc58e28bf17d016d6a184be6bbc286e04f
parentf36e0f1537568f0c2a3df3e1d1efbf13196f126c (diff)
blog: fix dead links on go fmt blog post
Fix some links which no longer resolve on the post introducing go fmt Fixes golang/go#19036 Change-Id: I921eacd8b2ab55dbae7738e4a08b7819bda80576 Reviewed-on: https://go-review.googlesource.com/37191 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--content/go-fmt-your-code.article6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/go-fmt-your-code.article b/content/go-fmt-your-code.article
index 068d9ae..e95dd6e 100644
--- a/content/go-fmt-your-code.article
+++ b/content/go-fmt-your-code.article
@@ -32,9 +32,9 @@ Or you can use the "[[http://golang.org/cmd/go/#hdr-Run_gofmt_on_package_sources
To help keep your code in the canonical style, the Go repository contains hooks for editors and version control systems that make it easy to run gofmt on your code.
-For Vim users, the [[http://tip.golang.org/misc/vim/readme.txt][Vim plugin for Go]] includes the [[http://tip.golang.org/misc/vim/ftplugin/go/fmt.vim][:Fmt command]] that runs gofmt on the current buffer.
+For Vim users, the [[https://github.com/fatih/vim-go][Vim plugin for Go]] includes the :Fmt command that runs gofmt on the current buffer.
-For emacs users, [[http://tip.golang.org/misc/emacs/go-mode.el][go-mode.el]] provides a gofmt-before-save hook that can be installed by adding this line to your .emacs file:
+For emacs users, [[https://github.com/dominikh/go-mode.el][go-mode.el]] provides a gofmt-before-save hook that can be installed by adding this line to your .emacs file:
(add-hook 'before-save-hook #'gofmt-before-save)
@@ -59,4 +59,4 @@ For example, this[[https://golang.org/cl/7038051][ recent change]] to the Go cor
Gofmt also enables [[http://golang.org/cmd/fix/][gofix]], which can make arbitrarily complex source transformations. Gofix was an invaluable tool during the early days when we regularly made breaking changes to the language and libraries. For example, before Go 1 the built-in error interface didn't exist and the convention was to use the os.Error type. When we [[http://golang.org/doc/go1.html#errors][introduced error]], we provided a gofix module that rewrote all references to os.Error and its associated helper functions to use error and the new [[http://golang.org/pkg/errors/][errors package]]. It would have been daunting to attempt by hand, but with the code in a standard format it was relatively easy to prepare, execute, and review this change which touched almost all Go code in existence.
-For more about gofix, see [[http://blog.golang.org/2011/04/introducing-gofix.html][this article]].
+For more about gofix, see [[https://blog.golang.org/introducing-gofix][this article]].