From c2f5ade85dd0cb53db9bb31d3b802ddae2fbdaee Mon Sep 17 00:00:00 2001 From: Aliaksandr Pliutau Date: Thu, 22 Dec 2016 12:16:22 +0700 Subject: [PATCH] gofmt -s --- before-commit.sh | 2 +- example_test.go | 4 ++-- payout_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/before-commit.sh b/before-commit.sh index 8705715..0a2a214 100755 --- a/before-commit.sh +++ b/before-commit.sh @@ -1,6 +1,6 @@ #!/bin/bash -go fmt ./... +gofmt -s -w ./.. golint ./... go vet ./... go test -v -race ./... diff --git a/example_test.go b/example_test.go index 0f45945..020e153 100644 --- a/example_test.go +++ b/example_test.go @@ -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", diff --git a/payout_test.go b/payout_test.go index 549edd2..e77e0bc 100644 --- a/payout_test.go +++ b/payout_test.go @@ -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{