github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/tools/cmd/godoc/dl.go (about) 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 5 // +build !appengine 6 7 package main 8 9 import "net/http" 10 11 // Register a redirect handler for /dl/ to the golang.org download page. 12 // This file will not be included when deploying godoc to golang.org. 13 14 func init() { 15 http.Handle("/dl/", http.RedirectHandler("https://golang.org/dl/", http.StatusFound)) 16 }