component

package module
v0.0.0-...-90263df Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: MIT Imports: 4 Imported by: 0

README

component

Build Status GoDoc

Package component is a collection of basic HTML components.

Installation

go get -u github.com/shurcooL/component

License

Documentation

Overview

Package component is a collection of basic HTML components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Text   string
	URL    string
	NewTab bool // Open link in new tab.
}

Link component.

func (Link) Render

func (l Link) Render() []*html.Node

type List

type List []htmlg.Component

List of components.

func Join

func Join(a ...interface{}) List

Join components and strings into a single component. Valid types are string, htmlg.Component. Panics on other input.

func (List) Render

func (l List) Render() []*html.Node

type Text

type Text string

Text component.

func (Text) Render

func (t Text) Render() []*html.Node

Jump to

Keyboard shortcuts

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