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" "database/sql"
"errors" "errors"
"fmt" "fmt"
_ "github.com/lib/pq"
"os" "os"
_ "github.com/lib/pq"
) )
func db_open() (*sql.DB, error) { func db_open() (*sql.DB, error) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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