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

            Source Files