diff --git a/godoc/dl/dl.go b/godoc/dl/dl.go index f5e6320874..7696f0883c 100644 --- a/godoc/dl/dl.go +++ b/godoc/dl/dl.go @@ -27,7 +27,6 @@ import ( "time" "golang.org/x/net/context" - "google.golang.org/appengine" "google.golang.org/appengine/datastore" "google.golang.org/appengine/log" @@ -47,11 +46,13 @@ func RegisterHandlers(mux *http.ServeMux) { mux.HandleFunc("/dl/init", initHandler) } +// File represents a file on the golang.org downloads page. +// It should be kept in sync with the upload code in x/build/cmd/release. type File struct { Filename string `json:"filename"` OS string `json:"os"` Arch string `json:"arch"` - Version string `json:"-"` + Version string `json:"version"` Checksum string `json:"-" datastore:",noindex"` // SHA1; deprecated ChecksumSHA256 string `json:"sha256" datastore:",noindex"` Size int64 `json:"size" datastore:",noindex"`