feat: Added CV Summary
JSON does not support splitting a string into multiple lines so I've changed the Summary field from string to []string. I've created a func called join that uses strings.Join() to concatenate all elements of Summary into a single string.
This commit is contained in:
parent
d3eceb1db8
commit
88981882c4
4 changed files with 19 additions and 3 deletions
10
data/cv.json
10
data/cv.json
|
@ -11,7 +11,15 @@
|
||||||
"gitlab": "gitlab.com/dananglin",
|
"gitlab": "gitlab.com/dananglin",
|
||||||
"github": "github.com/dananglin"
|
"github": "github.com/dananglin"
|
||||||
},
|
},
|
||||||
"summary": "To be completed.",
|
"summary": [
|
||||||
|
"I am a Platform Automation Engineer with over four years of professional experience in DevOps and Platform Automation.",
|
||||||
|
"My experience ranges from provisioning VMs and automating software installation using Ansible and Puppet",
|
||||||
|
"to provisioning new Kubernetes environments using GitOps and creating Operators for the auto-provisioning and maintenance of PostgreSQL clusters on Kubernetes.",
|
||||||
|
"Throughout my time with Ocado Technology I have developed an interest in the Go programming language",
|
||||||
|
"and I would like to continue increasing my knowledge and experience in Go and use it more professionally.",
|
||||||
|
"I'm also keen on learning more about platform automation, platform monitoring and alerting and platform self healing.",
|
||||||
|
"As my career advances I aspire to use my knowledge and skills to become a respected Senior Engineer with a background in platform automation."
|
||||||
|
],
|
||||||
"technologies": [
|
"technologies": [
|
||||||
{
|
{
|
||||||
"category": "Programming Languages",
|
"category": "Programming Languages",
|
||||||
|
|
8
main.go
8
main.go
|
@ -5,6 +5,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -22,6 +23,7 @@ func main() {
|
||||||
|
|
||||||
fmap := template.FuncMap{
|
fmap := template.FuncMap{
|
||||||
"notLastElement": notLastElement,
|
"notLastElement": notLastElement,
|
||||||
|
"join": join,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read the JSON data
|
// Read the JSON data
|
||||||
|
@ -65,3 +67,9 @@ func main() {
|
||||||
func notLastElement(pos, length int) bool {
|
func notLastElement(pos, length int) bool {
|
||||||
return pos < length-1
|
return pos < length-1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// join uses strings.Join to join all string elements into
|
||||||
|
// a single string.
|
||||||
|
func join(s []string) string {
|
||||||
|
return strings.Join(s, " ")
|
||||||
|
}
|
||||||
|
|
2
model.go
2
model.go
|
@ -6,7 +6,7 @@ type Cv struct {
|
||||||
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"`
|
Technologies []Technologies `json:"technologies"`
|
||||||
Employment []Experience `json:"employment"`
|
Employment []Experience `json:"employment"`
|
||||||
Education []Experience `json:"education"`
|
Education []Experience `json:"education"`
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
\stoptitleAndContact
|
\stoptitleAndContact
|
||||||
|
|
||||||
\section{SUMMARY}
|
\section{SUMMARY}
|
||||||
<<.Summary>>
|
<<join .Summary>>
|
||||||
|
|
||||||
\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)|]
|
||||||
|
|
Loading…
Reference in a new issue