fix formatting

This commit is contained in:
Peter Rounce 2023-02-19 06:52:12 +00:00
parent f3949b1b59
commit b4494c7ed3
11 changed files with 34 additions and 34 deletions

View file

@ -1,14 +1,14 @@
package lnurlw
import (
decodepay "github.com/fiatjaf/ln-decodepay"
log "github.com/sirupsen/logrus"
"net/http"
"bytes"
"io"
"github.com/boltcard/boltcard/db"
"github.com/boltcard/boltcard/lnd"
"github.com/boltcard/boltcard/resp_err"
decodepay "github.com/fiatjaf/ln-decodepay"
log "github.com/sirupsen/logrus"
"io"
"net/http"
)
func lndhub_payment(w http.ResponseWriter, p *db.Payment) {
@ -28,7 +28,7 @@ func lndhub_payment(w http.ResponseWriter, p *db.Payment) {
//the login JSON is held in the Card_name field
body := []byte(c.Card_name)
r, err := http.NewRequest("POST", lndhub_url + "/auth", bytes.NewBuffer(body))
r, err := http.NewRequest("POST", lndhub_url+"/auth", bytes.NewBuffer(body))
if err != nil {
log.WithFields(log.Fields{"card_payment_id": p.Card_payment_id}).Warn(err)
resp_err.Write(w)
@ -57,7 +57,7 @@ func lndhub_payment(w http.ResponseWriter, p *db.Payment) {
log.Info(string(b))
// fmt.Println(string(b))
// fmt.Println(string(b))
//lndhub.payinvoice API call
}

View file

@ -4,14 +4,14 @@ import (
"encoding/hex"
"encoding/json"
"errors"
"github.com/boltcard/boltcard/crypto"
"github.com/boltcard/boltcard/db"
"github.com/boltcard/boltcard/resp_err"
log "github.com/sirupsen/logrus"
"net/http"
"os"
"strconv"
"strings"
"github.com/boltcard/boltcard/db"
"github.com/boltcard/boltcard/crypto"
"github.com/boltcard/boltcard/resp_err"
)
type ResponseData struct {