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

Function EntityToString

pkg/attribute/attribute.go:160–162  ·  view source on GitHub ↗

EntityToString function takes an Entity object and converts it into a string.

(entity *base.Entity)

Source from the content-addressed store, hash-verified

158
159// EntityToString function takes an Entity object and converts it into a string.
160func EntityToString(entity *base.Entity) string {
161 return fmt.Sprintf(ENTITY, entity.GetType(), entity.GetId())
162}
163
164// EntityAndCallOrAttributeToString -
165func EntityAndCallOrAttributeToString(entity *base.Entity, attributeOrCall string, arguments ...*base.Argument) string {

Callers 4

ToStringFunction · 0.70
attribute_test.goFile · 0.70

Calls 2

GetTypeMethod · 0.65
GetIdMethod · 0.45

Tested by

no test coverage detected