cv

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 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 {
	Contact    map[string]string `json:"contact,omitempty"`
	Education  []Education       `json:"education"`
	Employment []Employment      `json:"employment"`
	FirstName  string            `json:"firstName"`
	Interests  []string          `json:"interests"`
	JobTitle   string            `json:"jobTitle"`
	LastName   string            `json:"lastName"`
	Links      map[string]string `json:"links,omitempty"`
	Skills     []Skills          `json:"skills"`
	Summary    []string          `json:"summary"`
}

Code generated by jsonschemagen. DO NOT EDIT.

func NewCV

func NewCV(firstName, lastName, jobTitle string) CV

NewCV returns a new value of type 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 {
	Day   int64 `json:"day"`
	Month int64 `json:"month"`
	Year  int64 `json:"year"`
}

func (Date) Parse added in v0.3.0

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

Parse parses Date and returns a value of type time.Time. An error is returned if the parsing fails.

type Duration

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

func (Duration) After

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

After returns true if the Duration's end date is set after the earliest experience date. An error is returned if the end date is not parsed successfully.

type Education added in v0.3.0

type Education struct {
	Details       []string `json:"details,omitempty"`
	Duration      Duration `json:"duration"`
	Location      string   `json:"location"`
	Qualification string   `json:"qualification"`
	School        string   `json:"school"`
}

type Employment added in v0.3.0

type Employment struct {
	Company      string   `json:"company"`
	Details      []string `json:"details,omitempty"`
	Duration     Duration `json:"duration"`
	JobTitle     string   `json:"jobTitle"`
	Location     string   `json:"location"`
	LocationType string   `json:"locationType,omitempty"`
}

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