fix(breaking): change technologies to skills

This commit is contained in:
Dan Anglin 2023-02-23 19:53:57 +00:00
parent ac1139b6d1
commit 38218f5811
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 14 additions and 14 deletions

22
cv.go
View file

@ -1,16 +1,16 @@
package main package main
type Cv struct { type Cv struct {
FirstName string `json:"firstName"` FirstName string `json:"firstName"`
LastName string `json:"lastName"` LastName string `json:"lastName"`
JobTitle string `json:"jobTitle"` JobTitle string `json:"jobTitle"`
Contact Contact `json:"contact"` Contact Contact `json:"contact"`
Links Links `json:"links"` Links Links `json:"links"`
Summary []string `json:"summary"` Summary []string `json:"summary"`
Technologies []Technologies `json:"technologies"` Skills []Skills `json:"skills"`
Employment []Experience `json:"employment"` Employment []Experience `json:"employment"`
Education []Experience `json:"education"` Education []Experience `json:"education"`
Interests []string `json:"interests"` Interests []string `json:"interests"`
} }
type Contact struct { type Contact struct {
@ -24,7 +24,7 @@ type Links struct {
GitHub string `json:"github"` GitHub string `json:"github"`
} }
type Technologies struct { type Skills struct {
Category string `json:"category"` Category string `json:"category"`
Values []string `json:"values"` Values []string `json:"values"`
} }

View file

@ -15,7 +15,7 @@
"Natus modi culpa at vel officiis debitis fuga delectus, quo pariatur dicta eum molestiae et, sed maxime delectus quasi enim quasi alias quibusdam.", "Natus modi culpa at vel officiis debitis fuga delectus, quo pariatur dicta eum molestiae et, sed maxime delectus quasi enim quasi alias quibusdam.",
"Facere sequi tempora voluptates maxime velit explicabo sed." "Facere sequi tempora voluptates maxime velit explicabo sed."
], ],
"technologies": [ "skills": [
{ {
"category": "Programming Languages", "category": "Programming Languages",
"values": [ "Go", "Python", "Javascript", "Typescript" ] "values": [ "Go", "Python", "Javascript", "Typescript" ]

View file

@ -18,8 +18,8 @@
\section{SKILLS SUMMARY} \section{SKILLS SUMMARY}
\starttabulate[|w(0.3\textwidth)lB|lp(0.7\textwidth)|] \starttabulate[|w(0.3\textwidth)lB|lp(0.7\textwidth)|]
<<$lenTech := len .Technologies>> <<$lenTech := len .Skills>>
<<range $i, $tech := .Technologies>> <<range $i, $tech := .Skills>>
<<$lenValues := len $tech.Values>> <<$lenValues := len $tech.Values>>
\NC <<$tech.Category>> \NC <<range $j, $val := $tech.Values>><<$val>><<if notLastElement $j $lenValues>>, <<end>><<end>>\NC\NR \NC <<$tech.Category>> \NC <<range $j, $val := $tech.Values>><<$val>><<if notLastElement $j $lenValues>>, <<end>><<end>>\NC\NR
<<if notLastElement $i $lenTech>>\TB[1mm]<<end>> <<if notLastElement $i $lenTech>>\TB[1mm]<<end>>