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 package main 6 7 //go:generate gotext -srclang=en update -out=catalog_gen.go -lang=en,zh 8 9 import ( 10 "net/http" 11 12 "golang.org/x/text/cmd/gotext/examples/extract_http/pkg" 13 ) 14 15 func main() { 16 http.Handle("/generize", http.HandlerFunc(pkg.Generize)) 17 } 18