Created
October 18, 2017 20:42
-
-
Save beeekind/53ec5132df7174dc001feaedb788d47d to your computer and use it in GitHub Desktop.
data structures
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package profile_extractor | |
import "time" | |
type Profile struct { | |
Name string | |
ProfileURL string | |
CurrentJobTitle string | |
CurrentCompany string | |
CurrentLocation string | |
CurrentConnections int | |
CurrentProfileSummary string | |
Activities []*Activity | |
NumFollowers int | |
Experiences []*Experience | |
Educations []*Education | |
Endorsements []*Endorsement | |
ReceivedRecommendatios []*ReceivedRecommendation | |
Accomplishments []*Accomplishment | |
} | |
type Accomplishment struct { | |
Title string | |
Date time.Time | |
Summary string | |
} | |
type ReceivedRecommendation struct { | |
GivenBy string // name of the individual | |
GivenByTitle string // job title of the individual | |
GivenByProfileURL string | |
ReceivedOn time.Time | |
Text string | |
} | |
type Endorsement struct { | |
Title string | |
GivenByName string | |
GivenByProfileURL string | |
NumEndorsements int | |
} | |
type Education struct { | |
Name string | |
StartDate time.Time | |
EndDate time.Time | |
} | |
type Experience struct { | |
Title string | |
Company string | |
Location string | |
StartDate time.Time | |
EndDate time.Time | |
Summary string | |
} | |
type Activity struct { | |
Author string | |
Summary string | |
ActivityLink string | |
} | |
func FromFile(filePath string) (*Profile, error){ | |
return nil, nil | |
} | |
func FromString(filePath string) (*Profile, error){ | |
return nil, nil | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment