// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // +build appengine package dl // TODO(adg): refactor this to use the tools/godoc/static template. const templateHTML = ` {{define "root"}} Downloads - The Go Programming Language

Downloads

After downloading a binary release suitable for your system, please follow the installation instructions.

If you are building from source, follow the source installation instructions.

See the release history for more information about Go releases.

{{with .Featured}} {{range .}} {{template "download" .}} {{end}} {{end}}
{{with .Stable}}

Stable versions

{{template "releases" .}} {{end}} {{with .Unstable}}

Unstable version

{{template "releases" .}} {{end}} {{with .Archive}}

Archived versions▾

{{template "releases" .}}
{{end}}
{{end}} {{define "releases"}} {{range .}}

{{.Version}} ▾

{{if .Stable}}{{else}}

This is an unstable version of Go. Use with caution.

If you already have Go installed, you can install this version by running:

go get golang.org/x/build/version/{{.Version}}

Then, use the {{.Version}} command instead of the go command to use {{.Version}}.

{{end}} {{template "files" .}}
{{end}} {{end}} {{define "files"}} {{/* Use the checksum type of the first file for the column heading. */}} {{if .SplitPortTable}} {{range .Files}}{{if .PrimaryPort}}{{template "file" .}}{{end}}{{end}} {{/* TODO(cbro): add a link to an explanatory doc page */}} {{range .Files}}{{if not .PrimaryPort}}{{template "file" .}}{{end}}{{end}} {{else}} {{range .Files}}{{template "file" .}}{{end}} {{end}}
File name Kind OS Arch Size{{(index .Files 0).ChecksumType}} Checksum
Other Ports
{{end}} {{define "file"}} {{.Filename}} {{pretty .Kind}} {{.PrettyOS}} {{pretty .Arch}} {{.PrettySize}} {{.PrettyChecksum}} {{end}} {{define "download"}}
{{.Platform}}
{{with .Requirements}}
{{.}}
{{end}}
{{.Filename}} {{if .Size}}({{.PrettySize}}){{end}}
{{end}} `