| [ |
| { |
| "key": [ |
| "Hello world!\n" |
| ], |
| "message": { |
| "msg": "Hello world!\n" |
| }, |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:27:10" |
| }, |
| { |
| "key": [ |
| "Hello %s!\n" |
| ], |
| "message": { |
| "msg": "Hello {City}!\n" |
| }, |
| "placeholders": [ |
| { |
| "id": "City", |
| "string": "%[1]s", |
| "type": "string", |
| "underlyingType": "string", |
| "argNum": 1, |
| "expr": "city" |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:31:10" |
| }, |
| { |
| "key": [ |
| "Hello %s!\n" |
| ], |
| "message": { |
| "msg": "Hello {Town}!\n" |
| }, |
| "placeholders": [ |
| { |
| "id": "Town", |
| "string": "%[1]s", |
| "type": "string", |
| "underlyingType": "string", |
| "argNum": 1, |
| "expr": "town", |
| "comment": "Town" |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:35:10" |
| }, |
| { |
| "key": [ |
| "%s is visiting %s!\n" |
| ], |
| "message": { |
| "msg": "{Person} is visiting {Place}!\n" |
| }, |
| "placeholders": [ |
| { |
| "id": "Person", |
| "string": "%[1]s", |
| "type": "string", |
| "underlyingType": "string", |
| "argNum": 1, |
| "expr": "person", |
| "comment": "The person of matter." |
| }, |
| { |
| "id": "Place", |
| "string": "%[2]s", |
| "type": "string", |
| "underlyingType": "string", |
| "argNum": 2, |
| "expr": "place", |
| "comment": "Place the person is visiting." |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:40:10" |
| }, |
| { |
| "key": [ |
| "%[1]s is visiting %[3]s!\n" |
| ], |
| "message": { |
| "msg": "{Person} is visiting {Place}!\n" |
| }, |
| "comment": "Person visiting a place.", |
| "placeholders": [ |
| { |
| "id": "Person", |
| "string": "%[1]s", |
| "type": "string", |
| "underlyingType": "string", |
| "argNum": 1, |
| "expr": "pp.Person" |
| }, |
| { |
| "id": "Place", |
| "string": "%[3]s", |
| "type": "string", |
| "underlyingType": "string", |
| "argNum": 3, |
| "expr": "pp.Place", |
| "comment": "Place the person is visiting." |
| }, |
| { |
| "id": "Extra", |
| "string": "%[2]v", |
| "type": "int", |
| "underlyingType": "int", |
| "argNum": 2, |
| "expr": "pp.extra" |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:55:10" |
| }, |
| { |
| "key": [ |
| "%d files remaining!" |
| ], |
| "message": { |
| "msg": "{} files remaining!" |
| }, |
| "placeholders": [ |
| { |
| "id": "", |
| "string": "%[1]d", |
| "type": "int", |
| "underlyingType": "int", |
| "argNum": 1, |
| "expr": "2" |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:62:10" |
| }, |
| { |
| "key": [ |
| "%d more files remaining!" |
| ], |
| "message": { |
| "msg": "{N} more files remaining!" |
| }, |
| "placeholders": [ |
| { |
| "id": "N", |
| "string": "%[1]d", |
| "type": "int", |
| "underlyingType": "int", |
| "argNum": 1, |
| "expr": "n" |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:67:10" |
| }, |
| { |
| "key": [ |
| "Use the following code for your discount: %d\n" |
| ], |
| "message": { |
| "msg": "Use the following code for your discount: {ReferralCode}\n" |
| }, |
| "placeholders": [ |
| { |
| "id": "ReferralCode", |
| "string": "%[1]d", |
| "type": "golang.org/x/text/cmd/gotext/examples/extract.referralCode", |
| "underlyingType": "int", |
| "argNum": 1, |
| "expr": "c" |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:73:10" |
| }, |
| { |
| "key": [ |
| "msgOutOfOrder", |
| "%s is out of order!" |
| ], |
| "message": { |
| "msg": "{Device} is out of order!" |
| }, |
| "comment": "FOO\n", |
| "placeholders": [ |
| { |
| "id": "Device", |
| "string": "%[1]s", |
| "type": "string", |
| "underlyingType": "string", |
| "argNum": 1, |
| "expr": "device" |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:81:10" |
| }, |
| { |
| "key": [ |
| "%.2[1]f miles traveled (%[1]f)" |
| ], |
| "message": { |
| "msg": "{Miles} miles traveled ({Miles_1})" |
| }, |
| "placeholders": [ |
| { |
| "id": "Miles", |
| "string": "%.2[1]f", |
| "type": "float64", |
| "underlyingType": "float64", |
| "argNum": 1, |
| "expr": "miles" |
| }, |
| { |
| "id": "Miles_1", |
| "string": "%[1]f", |
| "type": "float64", |
| "underlyingType": "float64", |
| "argNum": 1, |
| "expr": "miles" |
| } |
| ], |
| "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:85:10" |
| } |
| ] |