component

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

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 4 Imported by: 5

README

component

Go Reference

Package component is a collection of basic HTML components.

Installation

go get 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