commit | e7f22345d713f5003a1739e27983da4af5f0fdaf | [log] [tgz] |
---|---|---|
author | Andrew Gerrand <adg@golang.org> | Fri Feb 12 12:51:00 2016 +1100 |
committer | Andrew Gerrand <adg@golang.org> | Wed Feb 17 20:43:35 2016 +0000 |
tree | 6c262dd92785233a52a2f8cdd6078a2b14d4d140 | |
parent | ff9d95a11f6ba0c04cfe52caa01d33a11bb474f4 [diff] |
template: add example to demonstrate template blocks Fixes golang/go#14285 Change-Id: I3b32b7fc19960a77778e84cba2a0a95b49dbdf16 Reviewed-on: https://go-review.googlesource.com/19443 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Chris Broadfoot <cbro@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
This repository contains a collection of Go programs and libraries that demonstrate the language, standard libraries, and tools.
go get github.com/golang/example/hello
A trivial “Hello, world” program that uses a stringutil package.
Command hello covers:
Library stringutil covers:
go get github.com/golang/example/outyet
A web server that answers the question: “Is Go 1.x out yet?”
Topics covered:
goapp get github.com/golang/example/appengine-hello
A trivial “Hello, world” App Engine application intended to be used as the starting point for your own code.
Note: The goapp
tool is part of the Google App Engine SDK for Go.
A trivial web server that demonstrates the use of the template
package's block
feature.