cleanup imports

This commit is contained in:
Pavol Rusnak 2022-08-31 12:00:40 +02:00
parent c1c88e392a
commit 15bb58980a
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
8 changed files with 16 additions and 8 deletions

View file

@ -4,8 +4,9 @@ import (
"database/sql"
"errors"
"fmt"
_ "github.com/lib/pq"
"os"
_ "github.com/lib/pq"
)
func db_open() (*sql.DB, error) {

View file

@ -5,9 +5,10 @@ import (
"encoding/hex"
"flag"
"fmt"
"os"
log "github.com/sirupsen/logrus"
qrcode "github.com/skip2/go-qrcode"
"os"
)
func random_hex() string {

View file

@ -6,6 +6,7 @@ import (
"crypto/cipher"
"crypto/rand"
"encoding/hex"
"github.com/aead/cmac"
)

View file

@ -4,8 +4,9 @@ import (
"database/sql"
"errors"
"fmt"
_ "github.com/lib/pq"
"os"
_ "github.com/lib/pq"
)
type Card struct {

View file

@ -1,10 +1,11 @@
package main
import (
decodepay "github.com/fiatjaf/ln-decodepay"
log "github.com/sirupsen/logrus"
"net/http"
"os"
decodepay "github.com/fiatjaf/ln-decodepay"
log "github.com/sirupsen/logrus"
)
func lnurlw_callback(w http.ResponseWriter, req *http.Request) {

View file

@ -4,10 +4,11 @@ import (
"encoding/hex"
"encoding/json"
"errors"
log "github.com/sirupsen/logrus"
"net/http"
"os"
"strconv"
log "github.com/sirupsen/logrus"
)
type Response struct {

View file

@ -1,9 +1,10 @@
package main
import (
log "github.com/sirupsen/logrus"
"net/http"
"os"
log "github.com/sirupsen/logrus"
)
func write_error(w http.ResponseWriter) {

View file

@ -3,9 +3,10 @@ package main
import (
"database/sql"
"encoding/json"
log "github.com/sirupsen/logrus"
"net/http"
"os"
log "github.com/sirupsen/logrus"
)
/**