talk

package
v0.0.0-...-f137246 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package talk includes the functionality to add, create, edit, remove, and show talks. It also includes supporting and helper functions that are talk-releated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTalks

func GetTalks(city, year string) ([]string, error)

GetTalks takes in the city and year and returns a list of the talks

func ShowTalks

func ShowTalks(city, year string) (err error)

func TOMLHandler

func TOMLHandler(front string) (map[string]interface{}, error)

TOMLHandler decodes TOML string into a go map[string]interface{}

Types

type Talk

type Talk struct {
	Name         string
	Title        string
	Description  string   `toml:"description,omitempty"`
	Speakers     []string `toml:"speakers, omitempty"`
	YouTube      string   `toml:"youtube,omitempty"`
	Vimeo        string   `toml:"vimeo,omitempty"`
	Speakerdeck  string   `toml:"speakerdeck,omitempty"`
	Slideshare   string   `toml:"slideshare,omitempty"`
	Googleslides string   `toml:"googleslides,omitempty"`
	PDF          string   `toml:"pdf,omitempty"`
	Slides       string   `toml:"slides,omitempty"`
	Abstract     string
}

Talk defines a devopsdays event's talk

func GetTalkInfo

func GetTalkInfo(file, city, year string) (talk *Talk, err error)

GetTalkInfo loads in a talk file and returns a struct with the information, decoded from the TOML in the frontmatter

Jump to

Keyboard shortcuts

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