formatRelationship formats a relationship string
(entityName, relationName, subjectType, subjectRelation string)
| 420 | |
| 421 | // formatRelationship formats a relationship string |
| 422 | func formatRelationship(entityName, relationName, subjectType, subjectRelation string) string { |
| 423 | if subjectRelation != "" { |
| 424 | return fmt.Sprintf("%s#%s@%s#%s", entityName, relationName, subjectType, subjectRelation) |
| 425 | } |
| 426 | return fmt.Sprintf("%s#%s@%s", entityName, relationName, subjectType) |
| 427 | } |
| 428 | |
| 429 | // formatAttribute formats an attribute string |
| 430 | func formatAttribute(entityName, attributeName string) string { |
no outgoing calls
no test coverage detected