...

Source file src/golang.org/x/text/cmd/gotext/examples/rewrite/printer.go

Documentation: golang.org/x/text/cmd/gotext/examples/rewrite

     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)
    17  

View as plain text