Started work on the Education page
[resumebuilder.git] / resumebuilder.go
index e1b26dd..cdba079 100644 (file)
@@ -13,6 +13,8 @@ type Applicant struct {
        DateOfBirth Date
        Sex         Sex
        Address     string
+       ContactNo   string
+       Email       string
        Education   []Education
 }
 
@@ -23,9 +25,10 @@ type Date struct {
 }
 
 type Education struct {
-       SchoolName     string
-       YearOfPassing  int
-       PassPercentage float32
+       Qualification     string
+       Institution       string
+       YearOfPassing     uint
+       GradeOrPercentage string
 }
 
 type Sex int
@@ -108,6 +111,15 @@ func getBasicDetails() (*Applicant, error) {
                return nil, err
        }
 
+       contact, err := getLineText("ContactNumber")
+       if err != nil {
+               return nil, err
+       }
+       email, err := getLineText("Email")
+       if err != nil {
+               return nil, err
+       }
+
        // Store the contents in Applicant object
        var applicant = new(Applicant)
 
@@ -116,6 +128,8 @@ func getBasicDetails() (*Applicant, error) {
        applicant.DateOfBirth = selecteddate
        applicant.Sex = selectedsex
        applicant.Address = address
+       applicant.ContactNo = contact
+       applicant.Email = email
 
        return applicant, nil
 }