models

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

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogPost

type BlogPost struct {
	Author  string `yaml:"author"`
	Content string
	Icon    string    `yaml:"icon"`
	Time    time.Time `yaml:"time"`
	Title   string
}

func (*BlogPost) FileName

func (b *BlogPost) FileName(prefix, extension string) string

func (*BlogPost) ParseDescription

func (b *BlogPost) ParseDescription(description string) error

func (*BlogPost) RenderContent

func (b *BlogPost) RenderContent() string

func (*BlogPost) TimeStamp

func (b *BlogPost) TimeStamp() string

type BuildCollection

type BuildCollection struct {
	Description string
	IconSmall   string
	ID          string
	Title       string
}

func (*BuildCollection) FileName

func (m *BuildCollection) FileName(extension string) string

func (*BuildCollection) Label

func (m *BuildCollection) Label() string

type Model

type Model struct {
	BuildHours     string
	BuildPeriod    string
	Category       string
	Comments       string
	CompletionDate string
	FlickrSetID    string
	ID             string
	Name           string
	Scale          string
	Summary        string
	ThumbnailURL   string
}

func (*Model) FileName

func (m *Model) FileName(prefix, extension string) string

func (*Model) Publish

func (m *Model) Publish() bool

Jump to

Keyboard shortcuts

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