article

package
v0.0.0-alpha.0...-306d899 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package article defines the structure of the article and the related reporter that creates the article and publisher that outputs the article

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	// contains filtered or unexported fields
}

struct Article defines properties

func New

func New(Title, Description string) Article

func New creates new Article

func (*Article) Description

func (art *Article) Description() string

function Description returns Description string

func (*Article) TimeStamp

func (art *Article) TimeStamp() time.Time

function TimeStamp returns date time created

func (*Article) Title

func (art *Article) Title() string

function Title returns Title string

type Publisher

type Publisher interface {
	Publish(myArticle Article) error
	MustPublish(myArticle Article)
}

interface Publisher outputs Articles

type Reporter

type Reporter interface {
	Report(Title string) Article
}

interface Reporter creates Articles

Jump to

Keyboard shortcuts

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