commit | 32022caedd6a177a7717aa8680cbe179e1045935 | [log] [tgz] |
---|---|---|
author | Aleksandr Shalimov <shalimski@gmail.com> | Mon Feb 05 16:20:47 2024 +0000 |
committer | Jonathan Amsterdam <jba@google.com> | Mon Feb 05 18:00:59 2024 +0000 |
tree | dcab8bd64af429e6b5e4a944eb8025d518ad3503 | |
parent | 1d6d2400d4027025cb8edc86a139c9c581d672f7 [diff] |
slog-handler-guide/README.md: fix word duplication Change-Id: Id17b4acd73e237813292a63112b30e915d652bd4 GitHub-Last-Rev: 2052832a0d60d4b417f94e25fcb6802efd2aaf39 GitHub-Pull-Request: golang/example#29 Reviewed-on: https://go-review.googlesource.com/c/example/+/550196 Reviewed-by: qiulaidongfeng <2645477756@qq.com> Run-TryBot: qiulaidongfeng <2645477756@qq.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Bypass: Jonathan Amsterdam <jba@google.com>
This repository contains a collection of Go programs and libraries that demonstrate the language, standard libraries, and tools.
$ git clone https://go.googlesource.com/example $ cd example
https://go.googlesource.com/example is the canonical Git repository. It is mirrored at https://github.com/golang/example.
$ cd hello $ go build $ ./hello -help
A trivial “Hello, world” program that uses a library package.
The hello command covers:
The reverse reverse covers:
$ cd helloserver $ go run .
A trivial “Hello, world” web server.
Topics covered:
$ cd outyet $ go run .
A web server that answers the question: “Is Go 1.x out yet?”
Topics covered:
A trivial “Hello, world” App Engine application intended to be used as the starting point for your own code. Please see Google App Engine SDK for Go and Quickstart for Go in the App Engine Standard Environment.
The go/types
package is a type-checker for Go programs. It is one of the most complex packages in Go's standard library, so we have provided this tutorial to help you find your bearings. It comes with several example programs that you can obtain using go get
and play with as you learn to build tools that analyze or manipulate Go programs.
A trivial web server that demonstrates the use of the template
package's block
feature.
The log/slog
package supports structured logging. It features a flexible backend in the form of a Handler
interface. This guide can help you write your own handler.