X-Git-Url: https://harishankar.org/repos/?p=resumebuilder.git;a=blobdiff_plain;f=resumebuilder.go;fp=resumebuilder.go;h=ab16b01a91caa064d18665c08f14d4909d89cb2b;hp=e1b26dd279d7f258caf31c9cb5f3df9a5a98730f;hb=2f8931572b346167965f37199e3835d03f985e29;hpb=0d95ecc0aa9941f5130fd9f12249317bc541bcc0 diff --git a/resumebuilder.go b/resumebuilder.go index e1b26dd..ab16b01 100644 --- a/resumebuilder.go +++ b/resumebuilder.go @@ -13,6 +13,8 @@ type Applicant struct { DateOfBirth Date Sex Sex Address string + ContactNo string + Email string Education []Education } @@ -108,6 +110,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 +127,8 @@ func getBasicDetails() (*Applicant, error) { applicant.DateOfBirth = selecteddate applicant.Sex = selectedsex applicant.Address = address + applicant.ContactNo = contact + applicant.Email = email return applicant, nil }