NewSubjectCollection - Create new subject collection.
(subjects ...*base.Subject)
| 54 | |
| 55 | // NewSubjectCollection - Create new subject collection. |
| 56 | func NewSubjectCollection(subjects ...*base.Subject) *SubjectCollection { |
| 57 | if len(subjects) == 0 { |
| 58 | return &SubjectCollection{} |
| 59 | } |
| 60 | return &SubjectCollection{ |
| 61 | subjects: subjects, |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | // CreateSubjectIterator - Create subject iterator according to collection. |
| 66 | func (s *SubjectCollection) CreateSubjectIterator() *SubjectIterator { |
no outgoing calls