use stdout() function instead of fmt.Println() in some places.

This commit is contained in:
fiatjaf
2024-09-21 12:02:09 -03:00
parent a4886dc445
commit 3215726417
2 changed files with 8 additions and 8 deletions

4
key.go
View File

@@ -252,13 +252,13 @@ However, if the intent is to check if two existing Nostr pubkeys match a given c
}
res, _ := json.MarshalIndent(result, "", " ")
fmt.Println(string(res))
stdout(string(res))
return nil
},
}
func getSecretKeysFromStdinLinesOrSlice(ctx context.Context, c *cli.Command, keys []string) chan string {
func getSecretKeysFromStdinLinesOrSlice(ctx context.Context, _ *cli.Command, keys []string) chan string {
ch := make(chan string)
go func() {
for sec := range getStdinLinesOrArgumentsFromSlice(keys) {