mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
cmd+loopd: new cmd/loopd main method replacing the one now in ./loopd
This allows loopd to be used as a library by importing it and calling Start.
This commit is contained in:
parent
644b5b16f7
commit
704bfff8f6
2 changed files with 15 additions and 8 deletions
14
cmd/loopd/main.go
Normal file
14
cmd/loopd/main.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/lightninglabs/loop/loopd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
err := loopd.Start()
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue