issue

package
v0.0.0-...-5d55774 Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLinks int = 8

MaxLinks represents the maximal number of links per issue.

Variables

View Source
var (
	// DefaultBufferTemplate is the default Buffer template used to construct tweets.
	DefaultBufferTemplate = "%name%: %url%."
)
View Source
var DefaultCategories = []string{
	"Open Science & Data",
	"Tools for Scientists",
	"Cutting-edge Science",
	"Beyond Academia",
}

DefaultCategories contains the titles of the default categories

Functions

This section is empty.

Types

type Issue

type Issue struct {
	Number      int
	WelcomeText string `yaml:"welcome_text"`
	Date        time.Time
	Categories  []struct {
		Title string
		Links []Link
	}
}

Issue is a structure representing a newsletter issue.

func Parse

func Parse(filename string) (Issue, error)

Parse allows to parse a YAML file and returns a map

type Link struct {
	Name     string
	URL      string `yaml:"url"`
	Abstract string
	Buffer   string
}

Link is a structure representing a link entry in a newsletter issue.

func (*Link) GetBufferText

func (l *Link) GetBufferText() string

Jump to

Keyboard shortcuts

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