From 38218f58117bdce2af932bbd096bb5274c9b2195 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Thu, 23 Feb 2023 19:53:57 +0000 Subject: [PATCH] fix(breaking): change technologies to skills --- cv.go | 22 +++++++++++----------- example/cv.json | 2 +- templates/tex/cv.tmpl.tex | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cv.go b/cv.go index 155655f..d8b5da0 100644 --- a/cv.go +++ b/cv.go @@ -1,16 +1,16 @@ package main type Cv struct { - FirstName string `json:"firstName"` - LastName string `json:"lastName"` - JobTitle string `json:"jobTitle"` - Contact Contact `json:"contact"` - Links Links `json:"links"` - Summary []string `json:"summary"` - Technologies []Technologies `json:"technologies"` - Employment []Experience `json:"employment"` - Education []Experience `json:"education"` - Interests []string `json:"interests"` + FirstName string `json:"firstName"` + LastName string `json:"lastName"` + JobTitle string `json:"jobTitle"` + Contact Contact `json:"contact"` + Links Links `json:"links"` + Summary []string `json:"summary"` + Skills []Skills `json:"skills"` + Employment []Experience `json:"employment"` + Education []Experience `json:"education"` + Interests []string `json:"interests"` } type Contact struct { @@ -24,7 +24,7 @@ type Links struct { GitHub string `json:"github"` } -type Technologies struct { +type Skills struct { Category string `json:"category"` Values []string `json:"values"` } diff --git a/example/cv.json b/example/cv.json index 7dcb10e..61f3b0d 100644 --- a/example/cv.json +++ b/example/cv.json @@ -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.", "Facere sequi tempora voluptates maxime velit explicabo sed." ], - "technologies": [ + "skills": [ { "category": "Programming Languages", "values": [ "Go", "Python", "Javascript", "Typescript" ] diff --git a/templates/tex/cv.tmpl.tex b/templates/tex/cv.tmpl.tex index 35caa3a..c941374 100644 --- a/templates/tex/cv.tmpl.tex +++ b/templates/tex/cv.tmpl.tex @@ -18,8 +18,8 @@ \section{SKILLS SUMMARY} \starttabulate[|w(0.3\textwidth)lB|lp(0.7\textwidth)|] - <<$lenTech := len .Technologies>> - <> + <<$lenTech := len .Skills>> + <> <<$lenValues := len $tech.Values>> \NC <<$tech.Category>> \NC <><<$val>><>, <><>\NC\NR <>\TB[1mm]<>