projects
/
resumebuilder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Contact No and Email
[resumebuilder.git]
/
resumebuilder.go
diff --git
a/resumebuilder.go
b/resumebuilder.go
index
e1b26dd
..
ab16b01
100644
(file)
--- a/
resumebuilder.go
+++ b/
resumebuilder.go
@@
-13,6
+13,8
@@
type Applicant struct {
DateOfBirth Date
Sex Sex
Address string
DateOfBirth Date
Sex Sex
Address string
+ ContactNo string
+ Email string
Education []Education
}
Education []Education
}
@@
-108,6
+110,15
@@
func getBasicDetails() (*Applicant, error) {
return nil, err
}
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)
// 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.DateOfBirth = selecteddate
applicant.Sex = selectedsex
applicant.Address = address
+ applicant.ContactNo = contact
+ applicant.Email = email
return applicant, nil
}
return applicant, nil
}