loader

package
v0.0.0-...-813726f Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Education

type Education struct {
	Year        int
	School      string
	Title       string
	Description string
}

Education defines a resume education part

type Experience

type Experience struct {
	Start       string
	End         string
	Company     string
	Title       string
	Description string
}

Experience define a resume experience part

func (Experience) DescriptionLines

func (e Experience) DescriptionLines() []string

DescriptionLines returns the description splitted by lines

type Information

type Information struct {
	Firstname string
	Lastname  string
	Phone     string
	Email     string
	Twitter   string
	Website   string
	Title     string
}

Information represents general information

type Loader

type Loader struct {
}

Loader load toml file and merge them

func NewLoader

func NewLoader() *Loader

NewLoader creates a new loader with an initialized map

func (*Loader) Load

func (g *Loader) Load(dir string, name string) (*Resume, error)

Load loads a toml data file and merege inherited data

type Project

type Project struct {
	Year        int
	Name        string
	URL         string
	Description string
}

Project defines a personal project

type Resume

type Resume struct {
	Information Information
	Experiences map[string]Experience
	Educations  map[string]Education
	Projects    map[string]Project
}

Resume represents a resume structure

func (*Resume) SortedEducations

func (r *Resume) SortedEducations() []Education

SortedEducations returns the sorted education list

func (*Resume) SortedExperiences

func (r *Resume) SortedExperiences() []Experience

SortedExperiences returns the sorted experiences

func (*Resume) SortedProjects

func (r *Resume) SortedProjects() []Project

SortedProjects returns the sorted projects list

Jump to

Keyboard shortcuts

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