From 31d6917687718b6ff3c28bb5b4b18af304bbd12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20D=C3=B6ll?= Date: Thu, 1 Aug 2024 08:08:55 +0000 Subject: [PATCH] fix: simple string representation --- authz/builder.go | 7 +++++++ 1 file changed, 7 insertions(+) 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 + } +}