MCPcopy Create free account
hub / github.com/Permify/permify / CallOrAttributeToString

Function CallOrAttributeToString

pkg/attribute/attribute.go:170–179  ·  view source on GitHub ↗

CallOrAttributeToString -

(attributeOrCall string, arguments ...*base.Argument)

Source from the content-addressed store, hash-verified

168
169// CallOrAttributeToString -
170func CallOrAttributeToString(attributeOrCall string, arguments ...*base.Argument) string {
171 if len(arguments) > 0 {
172 var args []string
173 for _, arg := range arguments {
174 args = append(args, arg.GetComputedAttribute().GetName())
175 }
176 return fmt.Sprintf("%s(%s)", attributeOrCall, strings.Join(args, ","))
177 }
178 return attributeOrCall
179}
180
181func TypeUrlToString(url string) string {
182 switch url {

Callers 1

Calls 2

GetNameMethod · 0.65
GetComputedAttributeMethod · 0.45

Tested by

no test coverage detected