deck

package module
v0.0.0-...-d4834fa Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 3 Imported by: 0

README

Generate simple presentations using Go

Quickstart

$ go get github.com/preferit/deck

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultStyle

func DefaultStyle() *CSS

func Highlight

func Highlight(v string) string

Highlight go source code

func HighlightColors

func HighlightColors() *CSS

Types

type Deck

type Deck struct {
	Title   string // header title
	Slides  []*Element
	Styles  []*CSS // first one is the deck default styling
	NavShow Position
}

func New

func New() *Deck

New returns a deck with default styling and navigation on bottom

func (*Deck) Page

func (d *Deck) Page() *web.Page

Page returns a web page ready for use.

func (*Deck) Slide

func (d *Deck) Slide(elements ...interface{})

Slide appends a new slide to the deck. elements can be anything supported by the web package.

type Position

type Position int
const (
	Hidden Position = iota
	Top
	Bottom
)

Jump to

Keyboard shortcuts

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