Skip to content

Commit

Permalink
fix: simple string representation
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Aug 1, 2024
1 parent cd94e62 commit 31d6917
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions authz/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,10 @@ func Join(sep string, entities ...string) Stringer {
return strings.Join(entities, sep)
}
}

// String returns the string representation of the entity.
func String(s string) Stringer {
return func() string {
return s
}
}

0 comments on commit 31d6917

Please sign in to comment.