nip34: String() methods to repository and state.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package nip34
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"fiatjaf.com/nostr"
|
||||
@@ -65,3 +66,7 @@ func (rs RepositoryState) ToEvent() nostr.Event {
|
||||
CreatedAt: nostr.Now(),
|
||||
}
|
||||
}
|
||||
|
||||
func (rs RepositoryState) String() string {
|
||||
return fmt.Sprintf("RepositoryState{ID: %s, HEAD: %s, Tags: %v, Branches: %v}", rs.ID, rs.HEAD, rs.Tags, rs.Branches)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user