Vincenzo Palazzo
e4d22e0091
panic: interface conversion: interface {} is nil, not string goroutine 1 [running]: github.com/cln-reckless/cln4go.plugin/pkg/plugin.OceanPay(0xc0000bc000, 0xc0000b2e40) /home/vincent/github/work/ocean/ocean-ln/cln-offers/pkg/plugin/pay.go:51 +0x985 github.com/vincenzopalazzo/cln4go/plugin.(*rpcMethod[...]).Call(...) /home/vincent/github/work/ocean/ocean-ln/cln-offers/vendor/github.com/vincenzopalazzo/cln4go/plugin/command.go:12 github.com/vincenzopalazzo/cln4go/plugin.(*Plugin[...]).callRPCMethod(0xc000036120, {0xc000012a90?, 0x9}, 0x51bbe0) /home/vincent/github/work/ocean/ocean-ln/cln-offers/vendor/github.com/vincenzopalazzo/cln4go/plugin/plugin.go:147 +0x5a github.com/vincenzopalazzo/cln4go/plugin.(*Plugin[...]).Start(0x576820) /home/vincent/github/work/ocean/ocean-ln/cln-offers/vendor/github.com/vincenzopalazzo/cln4go/plugin/plugin.go:219 +0x156 main.main() /home/vincent/github/work/ocean/ocean-ln/cln-offers/cmd/plugin.go:17 +0x291 Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> |
||
---|---|---|
.github/workflows | ||
cln-integration | ||
cmd | ||
pkg/plugin | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
flake.lock | ||
flake.nix | ||
go.mod | ||
go.sum |
README.md
Table of Content
- Introduction
- How to use
- How to contribute
- Build with
- License
Introduction
A minimal template for projects based on cln4go. This should get you started if you want to develop a core lightning plugin using Go.
How to use
You can use the make file in the following way make build OS=<> ARCH=<> for example make build OS=darwin ARCH=amd64
for Mac M1
To produce a binary for the OS and ARCH.
However make build should be used only in release mode, in development mode you must use make that produce a debug binary, and also make a go fmt
for you, In addition, it makes a static analysis of the code with the following tool https://github.com/golangci/golangci-lint
So you should install it.
This binary can be used with core lightning using the
--plugin = path_to_this_executable_binary
Built with
License
Template to write a plugin for core lightning in dart lang.
Copyright (C) 2022 Vincenzo Palazzo vincenzopalazzodev@gmail.com ``
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.