summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/text/cmd/gotext/examples/extract_http/main.go
blob: b5eb3b33438a1c113ea59566d2706b91110a838a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2017 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.

package main

//go:generate gotext -srclang=en update -out=catalog_gen.go -lang=en,zh

import (
	"net/http"

	"golang.org/x/text/cmd/gotext/examples/extract_http/pkg"
)

func main() {
	http.Handle("/generize", http.HandlerFunc(pkg.Generize))
}