gotml

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

README

gotml

I wanted a simple way of generating html in a type safe way without a bunch of extra dependencies or build steps. So I made this.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A(props Props, children ...string) string

func Body

func Body(props Props, children ...string) string

func Button

func Button(props Props, children ...string) string

func Code

func Code(props Props, children ...string) string

func Comment

func Comment(children ...string) string

func Div

func Div(props Props, children ...string) string
func Footer(props Props, children ...string) string

func Form

func Form(props Props, children ...string) string

func H1

func H1(props Props, children ...string) string

func H2

func H2(props Props, children ...string) string

func H3

func H3(props Props, children ...string) string

func H4

func H4(props Props, children ...string) string

func H5

func H5(props Props, children ...string) string

func H6

func H6(props Props, children ...string) string
func Head(props Props, children ...string) string
func Header(props Props, children ...string) string

func Html

func Html(props Props, children ...string) string

func Img

func Img(props Props, children ...string) string

func Input

func Input(props Props, children ...string) string

func Label

func Label(props Props, children ...string) string

func Li

func Li(props Props, children ...string) string
func Link(props Props) string

func Main

func Main(props Props, children ...string) string

func Meta added in v0.0.7

func Meta(props Props) string
func Nav(props Props, children ...string) string

func NewAttributes added in v0.0.7

func NewAttributes(name string, value string) attributes

func Ol

func Ol(props Props, children ...string) string

func Option

func Option(props Props, children ...string) string

func P

func P(props Props, children ...string) string

func Q

func Q(props Props, children ...string) string

func S

func S(props Props, children ...string) string

func Script

func Script(props Props, children ...string) string

func Section

func Section(props Props, children ...string) string

func Select

func Select(props Props, children ...string) string

func Small

func Small(props Props, children ...string) string

func Span

func Span(props Props, children ...string) string

func Strong

func Strong(props Props, children ...string) string

func Style

func Style(props Props, children ...string) string

func Sub

func Sub(props Props, children ...string) string

func Sup

func Sup(props Props, children ...string) string

func Svg

func Svg(props Props, children ...string) string

func Table

func Table(props Props, children ...string) string

func Tbody

func Tbody(props Props, children ...string) string

func Td

func Td(props Props, children ...string) string

func Textarea

func Textarea(props Props, children ...string) string

func Tfoot

func Tfoot(props Props, children ...string) string

func Th

func Th(props Props, children ...string) string

func Thead

func Thead(props Props, children ...string) string

func Title

func Title(props Props, children ...string) string

func Tr

func Tr(props Props, children ...string) string

func U

func U(props Props, children ...string) string

func Ul

func Ul(props Props, children ...string) string

func Video

func Video(props Props, children ...string) string

Types

type Props

type Props struct {
	Classes    []string
	Id         string
	Attributes attributes
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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