From 05fa00fa4bd679d76af43f076988d1e902a3c593 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 21 May 2026 13:26:09 -0400 Subject: [PATCH] make public export --- subgraph.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subgraph.go b/subgraph.go index b54d314..5174867 100644 --- a/subgraph.go +++ b/subgraph.go @@ -55,7 +55,7 @@ func (s *EventSubgraph) FirstNodesByLabel(label string) *Node { // Helpers -func isValidTag(t roots.Tag) bool { +func IsValidTag(t roots.Tag) bool { if len(t) < 2 { // Skip tags that do not have name and value fields return false @@ -119,7 +119,7 @@ func newSignedRel(user, event *Node) *Relationship { func newTagNodes(tags []roots.Tag) []*Node { nodes := make([]*Node, 0, len(tags)) for _, tag := range tags { - if !isValidTag(tag) { + if !IsValidTag(tag) { continue } nodes = append(nodes, NewTagNode(tag[0], tag[1])) @@ -154,7 +154,7 @@ func DefaultExpanders() []Expander { func ExpandTaggedEvents(e roots.Event, s *EventSubgraph) { tagNodes := s.NodesByLabel("Tag") for _, tag := range e.Tags { - if !isValidTag(tag) { + if !IsValidTag(tag) { continue } name := tag[0] @@ -179,7 +179,7 @@ func ExpandTaggedEvents(e roots.Event, s *EventSubgraph) { func ExpandTaggedUsers(e roots.Event, s *EventSubgraph) { tagNodes := s.NodesByLabel("Tag") for _, tag := range e.Tags { - if !isValidTag(tag) { + if !IsValidTag(tag) { continue } name := tag[0]