You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
462 B

  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build !appengine
  5. package main
  6. import "net/http"
  7. // Register a redirect handler for /dl/ to the golang.org download page.
  8. // This file will not be included when deploying godoc to golang.org.
  9. func init() {
  10. http.Handle("/dl/", http.RedirectHandler("https://golang.org/dl/", http.StatusFound))
  11. }