Browse Source

Implemented Formulars.GetPeople()

Dmitry Yu Okunev 5 years ago
parent
commit
5955e45d7b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      formular.go

+ 3 - 0
formular.go

@@ -142,5 +142,8 @@ func (f Formular) IsActive() bool {
 type Formulars []Formular
 
 func (formulars Formulars) GetPeople() (people People) {
+	for _, formular := range formulars {
+		people = append(people, formular.GetPerson())
+	}
 	return
 }