mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-05 12:39:36 +02:00
nson and binary on justfile.
This commit is contained in:
parent
4c72e16f3e
commit
9e593c44c2
@ -11,7 +11,7 @@ import (
|
|||||||
func Unmarshal(data []byte, evt *nostr.Event) (err error) {
|
func Unmarshal(data []byte, evt *nostr.Event) (err error) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
err = fmt.Errorf("failed to decode leaner: %v", r)
|
err = fmt.Errorf("failed to decode binary: %v", r)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
6
justfile
6
justfile
@ -1,13 +1,15 @@
|
|||||||
build-all:
|
build-all:
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
for dir in (find . -maxdepth 1 -type d -name "nip*")
|
for dir in (find . -maxdepth 1 -type d -name "nip*")
|
||||||
echo "building $dir"
|
|
||||||
go build "./$dir"
|
go build "./$dir"
|
||||||
end
|
end
|
||||||
|
go build ./nson
|
||||||
|
go build ./binary
|
||||||
|
|
||||||
test-all:
|
test-all:
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
for dir in (find . -maxdepth 1 -type d -name "nip*")
|
for dir in (find . -maxdepth 1 -type d -name "nip*")
|
||||||
echo "testing $dir"
|
|
||||||
go test "./$dir"
|
go test "./$dir"
|
||||||
end
|
end
|
||||||
|
go test ./nson
|
||||||
|
go test ./binary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user