forked from go-packages/paypal
gofmt -s
This commit is contained in:
parent
750f7b432e
commit
c2f5ade85d
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
go fmt ./...
|
||||
gofmt -s -w ./..
|
||||
golint ./...
|
||||
go vet ./...
|
||||
go test -v -race ./...
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user