diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-01-16 12:03:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 12:03:31 -0500 |
commit | 2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7 (patch) | |
tree | e08ff912e1924c06939f314168c3362d6f1ec0de /vendor/golang.org/x/text/cmd/gotext/doc.go | |
parent | f5c8a71698d0a7a16c68be220e49fe64bfee7f5c (diff) | |
download | chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.tar.gz chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.tar.bz2 chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.zip |
Updated dependencies and added avct/uasurfer (#8089)
* Updated dependencies and added avct/uasurfer
* Added uasurfer to NOTICE.txt
Diffstat (limited to 'vendor/golang.org/x/text/cmd/gotext/doc.go')
-rw-r--r-- | vendor/golang.org/x/text/cmd/gotext/doc.go | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/vendor/golang.org/x/text/cmd/gotext/doc.go b/vendor/golang.org/x/text/cmd/gotext/doc.go index 54eb485d5..2a274f76e 100644 --- a/vendor/golang.org/x/text/cmd/gotext/doc.go +++ b/vendor/golang.org/x/text/cmd/gotext/doc.go @@ -1,9 +1,4 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// DO NOT EDIT THIS FILE. GENERATED BY go generate. -// Edit the documentation in other files and rerun go generate to generate this one. +// Code generated by go generate. DO NOT EDIT. // gotext is a tool for managing text in Go source code. // @@ -13,7 +8,9 @@ // // The commands are: // -// extract extract strings to be translated from code +// extract extracts strings to be translated from code +// rewrite rewrites fmt functions to use a message Printer +// generate generates code to insert translated messages // // Use "go help [command]" for more information about a command. // @@ -23,7 +20,7 @@ // Use "gotext help [topic]" for more information about that topic. // // -// Extract strings to be translated from code +// Extracts strings to be translated from code // // Usage: // @@ -32,4 +29,25 @@ // // // +// Rewrites fmt functions to use a message Printer +// +// Usage: +// +// go rewrite <package> +// +// rewrite is typically done once for a project. It rewrites all usages of +// fmt to use x/text's message package whenever a message.Printer is in scope. +// It rewrites Print and Println calls with constant strings to the equivalent +// using Printf to allow translators to reorder arguments. +// +// +// Generates code to insert translated messages +// +// Usage: +// +// go generate <package> +// +// +// +// package main |