1
+ [
2
+ {
3
+ "key" : [
4
+ " Hello %s!\n "
5
+ ],
6
+ "message" : {
7
+ "msg" : " Hello {City}!\n "
8
+ },
9
+ "args" : [
10
+ {
11
+ "id" : " City" ,
12
+ "argNum" : 1 ,
13
+ "format" : [
14
+ " %s"
15
+ ],
16
+ "type" : " string" ,
17
+ "underlyingType" : " string" ,
18
+ "expr" : " city" ,
19
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:31:26"
20
+ }
21
+ ],
22
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:31:10"
23
+ },
24
+ {
25
+ "key" : [
26
+ " Hello %s!\n "
27
+ ],
28
+ "message" : {
29
+ "msg" : " Hello {Town}!\n "
30
+ },
31
+ "args" : [
32
+ {
33
+ "id" : " Town" ,
34
+ "argNum" : 1 ,
35
+ "format" : [
36
+ " %s"
37
+ ],
38
+ "type" : " string" ,
39
+ "underlyingType" : " string" ,
40
+ "expr" : " town" ,
41
+ "comment" : " Town" ,
42
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:36:3"
43
+ }
44
+ ],
45
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:35:10"
46
+ },
47
+ {
48
+ "key" : [
49
+ " %s is visiting %s!\n "
50
+ ],
51
+ "message" : {
52
+ "msg" : " {Person} is visiting {Place}!\n "
53
+ },
54
+ "args" : [
55
+ {
56
+ "id" : " Person" ,
57
+ "argNum" : 1 ,
58
+ "format" : [
59
+ " %s"
60
+ ],
61
+ "type" : " string" ,
62
+ "underlyingType" : " string" ,
63
+ "expr" : " person" ,
64
+ "comment" : " The person of matter." ,
65
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:41:3"
66
+ },
67
+ {
68
+ "id" : " Place" ,
69
+ "argNum" : 2 ,
70
+ "format" : [
71
+ " %s"
72
+ ],
73
+ "type" : " string" ,
74
+ "underlyingType" : " string" ,
75
+ "expr" : " place" ,
76
+ "comment" : " Place the person is visiting." ,
77
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:42:3"
78
+ }
79
+ ],
80
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:40:10"
81
+ },
82
+ {
83
+ "key" : [
84
+ " %s is visiting %s!\n "
85
+ ],
86
+ "message" : {
87
+ "msg" : " {Person} is visiting {Place}!\n "
88
+ },
89
+ "comment" : " Person visiting a place." ,
90
+ "args" : [
91
+ {
92
+ "id" : " Person" ,
93
+ "argNum" : 1 ,
94
+ "format" : [
95
+ " %s"
96
+ ],
97
+ "type" : " string" ,
98
+ "underlyingType" : " string" ,
99
+ "expr" : " pp.Person" ,
100
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:54:3"
101
+ },
102
+ {
103
+ "id" : " Place" ,
104
+ "argNum" : 2 ,
105
+ "format" : [
106
+ " %s"
107
+ ],
108
+ "type" : " string" ,
109
+ "underlyingType" : " string" ,
110
+ "expr" : " pp.Place" ,
111
+ "comment" : " Place the person is visiting." ,
112
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:55:3"
113
+ }
114
+ ],
115
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:53:10"
116
+ },
117
+ {
118
+ "key" : [
119
+ " %d files remaining!"
120
+ ],
121
+ "message" : {
122
+ "msg" : " {2} files remaining!"
123
+ },
124
+ "args" : [
125
+ {
126
+ "id" : " 2" ,
127
+ "argNum" : 1 ,
128
+ "format" : [
129
+ " %d"
130
+ ],
131
+ "type" : " int" ,
132
+ "underlyingType" : " int" ,
133
+ "expr" : " 2" ,
134
+ "value" : " 2" ,
135
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:59:34"
136
+ }
137
+ ],
138
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:59:10"
139
+ },
140
+ {
141
+ "key" : [
142
+ " %d more files remaining!"
143
+ ],
144
+ "message" : {
145
+ "msg" : " {N} more files remaining!"
146
+ },
147
+ "args" : [
148
+ {
149
+ "id" : " N" ,
150
+ "argNum" : 1 ,
151
+ "format" : [
152
+ " %d"
153
+ ],
154
+ "type" : " int" ,
155
+ "underlyingType" : " int" ,
156
+ "expr" : " n" ,
157
+ "value" : " 2" ,
158
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:64:39"
159
+ }
160
+ ],
161
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:64:10"
162
+ },
163
+ {
164
+ "key" : [
165
+ " Use the following code for your discount: %d\n "
166
+ ],
167
+ "message" : {
168
+ "msg" : " Use the following code for your discount: {ReferralCode}\n "
169
+ },
170
+ "args" : [
171
+ {
172
+ "id" : " ReferralCode" ,
173
+ "argNum" : 1 ,
174
+ "format" : [
175
+ " %d"
176
+ ],
177
+ "type" : " golang.org/x/text/cmd/gotext/examples.referralCode" ,
178
+ "underlyingType" : " int" ,
179
+ "expr" : " c" ,
180
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:69:61"
181
+ }
182
+ ],
183
+ "position" : " golang.org/x/text/cmd/gotext/examples/main.go:69:10"
184
+ }
185
+ ]
0 commit comments