cv

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CV

type CV struct {
	FirstName  string            `json:"firstName"`
	LastName   string            `json:"lastName"`
	JobTitle   string            `json:"jobTitle"`
	Contact    map[string]string `json:"contact"`
	Links      map[string]string `json:"links"`
	Summary    []string          `json:"summary"`
	Skills     []Skills          `json:"skills"`
	Employment []Experience      `json:"employment"`
	Education  []Experience      `json:"education"`
	Interests  []string          `json:"interests"`
}

func NewCV

func NewCV(firstName, lastName, jobTitle string) CV

func NewCVFromFile added in v0.2.0

func NewCVFromFile(path string) (CV, error)

NewCVFromFile returns a new CV value from the given JSON file.

type Date

type Date struct {
	Year  int `json:"year"`
	Month int `json:"month"`
	Day   int `json:"day"`
}

func (Date) ParseDate

func (d Date) ParseDate() (time.Time, error)

type Duration

type Duration struct {
	Start   Date `json:"start"`
	End     Date `json:"end"`
	Present bool `json:"present"`
}

func (Duration) After

func (d Duration) After(t time.Time) (bool, error)

type Experience

type Experience struct {
	Company       string   `json:"company"`
	School        string   `json:"school"`
	Location      string   `json:"location"`
	LocationType  string   `json:"locationType"`
	JobTitle      string   `json:"jobTitle"`
	Qualification string   `json:"qualification"`
	Duration      Duration `json:"duration"`
	Details       []string `json:"details"`
}

type Skills

type Skills struct {
	Category string   `json:"category"`
	Values   []string `json:"values"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL