Exemplo n.º 1
0
func joinedRelationTags(unit *state.Unit) ([]string, error) {
	relations, err := unit.JoinedRelations()
	if err != nil {
		return nil, err
	}
	tags := make([]string, len(relations))
	for i, relation := range relations {
		tags[i] = relation.Tag()
	}
	return tags, nil
}