diff --git a/breacharbiter.go b/breacharbiter.go index be5e1b36d..33dd0fd8b 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 b3ae16930..8be6e992a 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 2d65d68ae..8313c6cf8 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 71137e6a8..e50e9c69f 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 86361569c..be8395cec 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 c85f94e2e..36a2224a0 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 bb1ba6809..cf3bdf5b6 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 0c0795850..63f475b0a 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 06ab7d0f9..4e2eb5112 100644 --- a/doc.go +++ b/doc.go @@ -1 +1 @@ -package main +package lnd diff --git a/fundingmanager.go b/fundingmanager.go index 6a7e642c7..bc272312b 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 08e0b5571..75ba4eaa1 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 318ac3ef6..41d6a49ef 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 0fe7a83de..a7eeebbd1 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 37afa0bc7..8ddb7f6da 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 6c1f3fb6a..10e077c54 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 eec8e74a9..d7f30d077 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 0c2059580..af5e0a067 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 e227d141d..d7fcf2e11 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 61251cd1e..9db7e7f36 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 8a5cdd5ad..b8f3831ad 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 1c8e2fb7d..38280d3ee 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 50b8fd9ee..083ae07c4 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 93ad3b683..ad2c04134 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 c697b03e5..4ba01552f 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 9b30c300e..8d1fc3d1a 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 36b978152..a95adcb9c 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 b300e4adc..05be1a0ae 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 1d368c581..82835226b 100644 --- a/witness_beacon.go +++ b/witness_beacon.go @@ -1,4 +1,4 @@ -package main +package lnd import ( "sync"