cmd/gotext/examples/rewrite/printer.go
raw| 1 | // Copyright 2017 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build ignore |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | import ( |
| 10 | "golang.org/x/text/language" |
| 11 | "golang.org/x/text/message" |
| 12 | ) |
| 13 | |
| 14 | // The printer defined here will be picked up by the first print statement |
| 15 | // in main.go. |
| 16 | var printer = message.NewPrinter(language.English) |