This commit is contained in:
Aliaksandr Pliutau 2016-12-22 12:16:22 +07:00
parent 750f7b432e
commit c2f5ade85d
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
go fmt ./...
gofmt -s -w ./..
golint ./...
go vet ./...
go test -v -race ./...

View File

@ -20,7 +20,7 @@ func Example() {
Intent: "sale",
Payer: &paypalsdk.Payer{
PaymentMethod: "credit_card",
FundingInstruments: []paypalsdk.FundingInstrument{paypalsdk.FundingInstrument{
FundingInstruments: []paypalsdk.FundingInstrument{{
CreditCard: &paypalsdk.CreditCard{
Number: "4111111111111111",
Type: "visa",
@ -32,7 +32,7 @@ func Example() {
},
}},
},
Transactions: []paypalsdk.Transaction{paypalsdk.Transaction{
Transactions: []paypalsdk.Transaction{{
Amount: &paypalsdk.Amount{
Currency: "USD",
Total: "7.00",

View File

@ -11,7 +11,7 @@ func TestCreateSinglePayout(t *testing.T) {
EmailSubject: "Subject will be displayed on PayPal",
},
Items: []PayoutItem{
PayoutItem{
{
RecipientType: "EMAIL",
Receiver: "single-email-payout@mail.com",
Amount: &AmountPayout{