diff --git a/breacharbiter.go b/breacharbiter.go index be5e1b36d4..33dd0fd8ba 100644 --- a/breacharbiter.go +++ b/breacharbiter.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "bytes" diff --git a/breacharbiter_test.go b/breacharbiter_test.go index b3ae16930e..8be6e992aa 100644 --- a/breacharbiter_test.go +++ b/breacharbiter_test.go @@ -1,6 +1,6 @@ // +build !rpctest -package main +package lnd import ( "bytes" diff --git a/chainparams.go b/chainparams.go index 2d65d68aec..8313c6cf8e 100644 --- a/chainparams.go +++ b/chainparams.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "github.com/btcsuite/btcd/chaincfg" diff --git a/chainregistry.go b/chainregistry.go index 71137e6a8d..e50e9c69f0 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "encoding/hex" diff --git a/chancloser.go b/chancloser.go index 86361569c4..be8395cec0 100644 --- a/chancloser.go +++ b/chancloser.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "fmt" diff --git a/channel_notifier.go b/channel_notifier.go index c85f94e2eb..36a2224a0b 100644 --- a/channel_notifier.go +++ b/channel_notifier.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "fmt" diff --git a/chanrestore.go b/chanrestore.go index bb1ba68093..cf3bdf5b67 100644 --- a/chanrestore.go +++ b/chanrestore.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "fmt" diff --git a/config.go b/config.go index 0c0795850a..63f475b0a5 100644 --- a/config.go +++ b/config.go @@ -2,7 +2,7 @@ // Copyright (c) 2015-2016 The Decred developers // Copyright (C) 2015-2017 The Lightning Network Developers -package main +package lnd import ( "errors" diff --git a/doc.go b/doc.go index 06ab7d0f9a..4e2eb51128 100644 --- a/doc.go +++ b/doc.go @@ -1 +1 @@ -package main +package lnd diff --git a/fundingmanager.go b/fundingmanager.go index 6a7e642c72..bc272312bb 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "bytes" diff --git a/fundingmanager_test.go b/fundingmanager_test.go index 08e0b55717..75ba4eaa1d 100644 --- a/fundingmanager_test.go +++ b/fundingmanager_test.go @@ -1,6 +1,6 @@ // +build !rpctest -package main +package lnd import ( "errors" diff --git a/lnd.go b/lnd.go index 318ac3ef67..41d6a49ef0 100644 --- a/lnd.go +++ b/lnd.go @@ -2,7 +2,7 @@ // Copyright (c) 2015-2016 The Decred developers // Copyright (C) 2015-2017 The Lightning Network Developers -package main +package lnd import ( "bytes" diff --git a/lnd_test.go b/lnd_test.go index 0fe7a83ded..a7eeebbd11 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -1,6 +1,6 @@ // +build rpctest -package main +package lnd import ( "bytes" diff --git a/log.go b/log.go index 37afa0bc7b..8ddb7f6da3 100644 --- a/log.go +++ b/log.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "fmt" diff --git a/mock.go b/mock.go index 6c1f3fb6aa..10e077c54c 100644 --- a/mock.go +++ b/mock.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "fmt" diff --git a/nursery_store.go b/nursery_store.go index eec8e74a99..d7f30d0772 100644 --- a/nursery_store.go +++ b/nursery_store.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "bytes" diff --git a/nursery_store_test.go b/nursery_store_test.go index 0c20595800..af5e0a0676 100644 --- a/nursery_store_test.go +++ b/nursery_store_test.go @@ -1,6 +1,6 @@ // +build !rpctest -package main +package lnd import ( "io/ioutil" diff --git a/peer.go b/peer.go index e227d141dd..d7fcf2e113 100644 --- a/peer.go +++ b/peer.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "bytes" diff --git a/peer_test.go b/peer_test.go index 61251cd1ee..9db7e7f36a 100644 --- a/peer_test.go +++ b/peer_test.go @@ -1,6 +1,6 @@ // +build !rpctest -package main +package lnd import ( "testing" diff --git a/pilot.go b/pilot.go index 8a5cdd5add..b8f3831ad9 100644 --- a/pilot.go +++ b/pilot.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "errors" diff --git a/rpcserver.go b/rpcserver.go index 1c8e2fb7db..38280d3eef 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "bytes" diff --git a/server.go b/server.go index 50b8fd9ee9..083ae07c4d 100644 --- a/server.go +++ b/server.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "bytes" diff --git a/server_test.go b/server_test.go index 93ad3b683f..ad2c04134e 100644 --- a/server_test.go +++ b/server_test.go @@ -1,6 +1,6 @@ // +build !rpctest -package main +package lnd import "testing" diff --git a/subrpcserver_config.go b/subrpcserver_config.go index c697b03e5c..4ba01552f3 100644 --- a/subrpcserver_config.go +++ b/subrpcserver_config.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "fmt" diff --git a/test_utils.go b/test_utils.go index 9b30c300e1..8d1fc3d1a3 100644 --- a/test_utils.go +++ b/test_utils.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "bytes" diff --git a/utxonursery.go b/utxonursery.go index 36b978152a..a95adcb9c4 100644 --- a/utxonursery.go +++ b/utxonursery.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "bytes" diff --git a/utxonursery_test.go b/utxonursery_test.go index b300e4adce..05be1a0aec 100644 --- a/utxonursery_test.go +++ b/utxonursery_test.go @@ -1,6 +1,6 @@ // +build !rpctest -package main +package lnd import ( "bytes" diff --git a/witness_beacon.go b/witness_beacon.go index 1d368c5816..82835226b5 100644 --- a/witness_beacon.go +++ b/witness_beacon.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "sync"