chore: update latest, add achievements field in work_experience

This commit is contained in:
Jesús Pérez 2024-08-24 23:03:16 +01:00
parent a57fca397d
commit 8d00a051aa
No known key found for this signature in database
3 changed files with 136 additions and 134 deletions

2
cv.go
View File

@ -192,7 +192,7 @@ func (cvdata *CVData)Load(root_path string, lang string, config *cfg.Config) err
case "teaching":
var teaching Teaching
cvdata.Teaching, err = teaching.Load(itmpath)
case "talks":
var talks Talks
cvdata.Talks, err = talks.Load(itmpath)
case "others":

View File

@ -15,6 +15,7 @@ type WorkExperienceType struct {
Position string `yaml:"position" json:"position"`
Description string `yaml:"description" json:"description"`
Tools []string `yaml:"tools" json:"tools"`
Achievements []string `yaml:"achievements" json:"achievements"`
Tasks []string `yaml:"tasks" json:"tasks"`
}
type WorkExperience struct {
@ -29,6 +30,7 @@ type ShowWorkExperienceType struct {
Position bool `yaml:"position" json:"position"`
Description bool `yaml:"description" json:"description"`
Tools bool `yaml:"tools" json:"tools"`
Achievements bool `yaml:"achievements" json:"achievements"`
Tasks bool `yaml:"tasks" json:"tasks"`
}
func (experience *WorkExperience)Load(path string) ([]WorkExperienceType, error) {