From e374e9364410820c7c8fc46dedbd03321335ef9a Mon Sep 17 00:00:00 2001 From: studiokaiji Date: Tue, 10 Oct 2023 14:54:51 +0900 Subject: [PATCH] =?UTF-8?q?replaceable=20event=E3=81=AE=E5=A0=B4=E5=90=88?= =?UTF-8?q?=E3=81=AFnevent=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=97=E3=81=AA?= =?UTF-8?q?=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hostr/main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hostr/main.go b/hostr/main.go index 8eaa10f..55691d6 100644 --- a/hostr/main.go +++ b/hostr/main.go @@ -58,13 +58,10 @@ func main() { fmt.Println("index.html:") fmt.Println(" - event.id:", id) - label := " - " - if replaceable { - label += "naddr" - } else { - label += "nevent" + if !replaceable { + label := " - nevent" + fmt.Printf("%s: %s\n", label, encoded) } - fmt.Printf("%s: %s\n", label, encoded) } return err },