// 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. 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}}

Older versions

Older releases of Go are available at Google Code.

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

{{.Version}} ▾

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

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

{{end}} {{template "files" .Files}}
{{end}} {{end}} {{define "files"}} {{range .}} {{else}} {{end}}
File name Kind OS Arch Size SHA1 Checksum
{{.Filename}} {{pretty .Kind}} {{.PrettyOS}} {{pretty .Arch}} {{.PrettySize}} {{.Checksum}}
No downloads available.
{{end}} {{define "download"}}
{{.Platform}}
{{with .Requirements}}
{{.}}
{{end}}
{{.Filename}} {{if .Size}}({{.PrettySize}}){{end}}
SHA1: {{.Checksum}}
{{end}} `