mirror of
https://github.com/bumi/lntip
synced 2025-07-05 16:48:56 +00:00
go fmt
This commit is contained in:
parent
01fb7be447
commit
faf858f0c4
@ -28,10 +28,10 @@ func main() {
|
|||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
e := echo.New()
|
e := echo.New()
|
||||||
if (*staticPath != "") {
|
if *staticPath != "" {
|
||||||
e.Static("/static", *staticPath)
|
e.Static("/static", *staticPath)
|
||||||
}
|
}
|
||||||
if (!*disableCors) {
|
if !*disableCors {
|
||||||
e.Use(middleware.CORS())
|
e.Use(middleware.CORS())
|
||||||
}
|
}
|
||||||
e.Use(middleware.Recover())
|
e.Use(middleware.Recover())
|
||||||
|
@ -8,14 +8,13 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/lightningnetwork/lnd/lnrpc"
|
"github.com/lightningnetwork/lnd/lnrpc"
|
||||||
"gopkg.in/macaroon.v2"
|
|
||||||
"github.com/lightningnetwork/lnd/macaroons"
|
"github.com/lightningnetwork/lnd/macaroons"
|
||||||
|
"gopkg.in/macaroon.v2"
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/credentials"
|
"google.golang.org/grpc/credentials"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
var stdOutLogger = log.New(os.Stdout, "", log.LstdFlags)
|
var stdOutLogger = log.New(os.Stdout, "", log.LstdFlags)
|
||||||
|
|
||||||
// thanks https://github.com/philippgille/ln-paywall/
|
// thanks https://github.com/philippgille/ln-paywall/
|
||||||
@ -135,4 +134,3 @@ type LNDoptions struct {
|
|||||||
// Optional ("invoice.macaroon" by default).
|
// Optional ("invoice.macaroon" by default).
|
||||||
MacaroonFile string
|
MacaroonFile string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user