component

package
v0.0.0-...-477ec8c Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlertStylePrimary   = "primary"
	AlertStyleSecondary = "secondary"
	AlertStyleSuccess   = "success"
	AlertStyleDanger    = "danger"
	AlertStyleWarning   = "warning"
	AlertStyleInfo      = "info"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	Style string
	Yield func()
}

func (*Alert) Render

func (c *Alert) Render(ctx context.Context, w io.Writer)

type App

type App struct {
	Title string
	Yield func()
}

func (*App) Render

func (c *App) Render(ctx context.Context, w io.Writer)

type Error

type Error struct {
	Err error
}

func (*Error) Render

func (c *Error) Render(ctx context.Context, w io.Writer)

Jump to

Keyboard shortcuts

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