marshall

package
v0.0.0-...-710b0ba Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(elements []string, with string) string

func RenderHtml

func RenderHtml(theme themes.Theme, resume Resume) []byte

func RenderPdf

func RenderPdf(theme themes.Theme, resume Resume) []byte

func RenderText

func RenderText(theme themes.Theme, resume Resume) []byte

Types

type Basic

type Basic struct {
	Name         string              `json:"name"`
	Label        string              `json:"label"`
	Pronouns     string              `json:"pronouns"`
	Image        string              `json:"image,omitempty"`
	Email        string              `json:"email"`
	Phone        string              `json:"phone"`
	Url          string              `json:"url,omitempty"`
	Summary      string              `json:"summary"`
	Location     map[string]string   `json:"location"`
	JsonProfiles []map[string]string `json:"profiles"`
	Profiles     map[string]Profile  `json:"-"`
}

type Education

type Education struct {
	Institution   string    `json:"institution"`
	Area          string    `json:"area"`
	StudyType     string    `json:"studyType"`
	StartDate     time.Time `json:"-"`
	JsonStartDate string    `json:"startDate"`
	EndDate       time.Time `json:"-"`
	JsonEndDate   string    `json:"endDate,omitempty"`
	Courses       []string  `json:"courses"`
}

type Highlight

type Highlight struct {
	Base      string   `json:"base"`
	Lowlights []string `json:"lowlights"`
}

type Interest

type Interest struct {
	Name string `json:"name"`
}

type Language

type Language struct {
	Language string `json:"language"`
	Fluency  string `json:"fluency"`
}

type Profile

type Profile struct {
	Network  string `json:"network"`
	Username string `json:"username"`
	Url      string `json:"url"`
}

type Project

type Project struct {
	Name          string            `json:"name"`
	StartDate     time.Time         `json:"-"`
	JsonStartDate string            `json:"startDate"`
	EndDate       time.Time         `json:"-"`
	JsonEndDate   string            `json:"endDate,omitempty"`
	Links         map[string]string `json:"links"`
	Keywords      []string          `json:"keywords"`
	Description   string            `json:"description"`
	Highlights    []Highlight       `json:"highlights"`
}

type Resume

type Resume struct {
	Basics    Basic       `json:"basics"`
	Education []Education `json:"education"`
	Work      []Work      `json:"work"`
	Languages []Language  `json:"languages"`
	Interests []Interest  `json:"interests"`
	Skills    []Skill     `json:"skills"`
	Projects  []Project   `json:"projects"`
}

func LoadJsonFile

func LoadJsonFile(path string) Resume

func LoadJsonString

func LoadJsonString(data []byte) Resume

type Skill

type Skill struct {
	Name     string   `json:"name"`
	Level    string   `json:"level"`
	Keywords []string `json:"keywords"`
}

type Work

type Work struct {
	Company       string      `json:"company"`
	Position      string      `json:"position"`
	Website       string      `json:"website"`
	StartDate     time.Time   `json:"-"`
	JsonStartDate string      `json:"startDate"`
	EndDate       time.Time   `json:"-"`
	JsonEndDate   string      `json:"endDate,omitempty"`
	Summary       string      `json:"summary"`
	Highlights    []Highlight `json:"highlights"`
}

func Sort

func Sort(in []Work, reverse bool) []Work

Jump to

Keyboard shortcuts

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