diff --git a/authz/builder.go b/authz/builder.go index c38cd40..947b05f 100644 --- a/authz/builder.go +++ b/authz/builder.go @@ -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 + } +}