nip11: always return a struct from Fetch() with URL filled.

This commit is contained in:
fiatjaf
2024-06-19 19:54:40 -03:00
parent 37ef70e4cb
commit 3862333dfa
3 changed files with 33 additions and 17 deletions

View File

@ -3,6 +3,8 @@ package nip11
import "slices"
type RelayInformationDocument struct {
URL string `json:"-"`
Name string `json:"name"`
Description string `json:"description"`
PubKey string `json:"pubkey"`