html

package
v0.0.0-...-683daf5 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetaInformationAlreadySuppliedError = errors.New("basic meta information already supplied")
	CharsetAlreadyDefinedError          = errors.New("charset already defined")
)
View Source
var (
	Utf_8      = CharSet{"UTF-8"}
	Iso_8859_1 = CharSet{"UTF-8"}
)

Functions

func Author

func Author(name string)

func Break

func Break() string

func Charset

func Charset(charSet CharSet) (err error)

func Checkbox

func Checkbox(name string, value string) string

func ColorPicker

func ColorPicker(name string, value string) string

func Comment

func Comment(comment string) string
func Copyright(value string)

func DatePicker

func DatePicker(name string, values ...string) string

func DateTimePicker

func DateTimePicker(name string, value string) string

func Description

func Description(value string)

func EmailField

func EmailField(name string, value string) string

func EmbedScript

func EmbedScript(code string, async ...bool)

func Escape

func Escape(val interface{}) string

func Image

func Image(src string, alt ...string) string

func Meta

func Meta(metaType string, content string)

func MonthDatePicker

func MonthDatePicker(name string, value string) string

func NumberPicker

func NumberPicker(name string, values ...string) string

func PasswordField

func PasswordField(name string, value ...string) string

func PreloadScript

func PreloadScript(href string, async ...bool)

func PreloadStylesheet

func PreloadStylesheet(href string)

func Radio

func Radio(name string, value string) string

func RangePicker

func RangePicker(name string, values ...string) string

func SearchField

func SearchField(name string, value string) string

func SetContentType

func SetContentType(writer io.Writer, mimeName client.Mime)

func TextField

func TextField(name string, value ...string) string

func TimeField

func TimeField(name string, value string) string

func Title

func Title(name string) (err error)

func UrlField

func UrlField(name string, value string) string

func Value

func Value(value interface{}) string

func WeekField

func WeekField(name string, value string) string

Types

type AfterActionFormElement

type AfterActionFormElement AfterClassFormElement

func (*AfterActionFormElement) Get

func (*AfterActionFormElement) Post

type AfterAttributesFormElement

type AfterAttributesFormElement AfterMethodFormElement

func (*AfterAttributesFormElement) Value

func (element *AfterAttributesFormElement) Value(value interface{}, submitElement ...*SubmitElement) string

type AfterClassFormElement

type AfterClassFormElement AfterIdFormElement

func (*AfterClassFormElement) Action

func (element *AfterClassFormElement) Action(name string) *AfterActionFormElement

func (*AfterClassFormElement) Class

func (element *AfterClassFormElement) Class(name ...string) *AfterClassFormElement

type AfterIdElement

type AfterIdElement Element

func (*AfterIdElement) Attributes

func (element *AfterIdElement) Attributes(attribs ...attribs.TagAttr) *AfterIdElement

func (*AfterIdElement) Class

func (element *AfterIdElement) Class(value string) *AfterIdElement

func (*AfterIdElement) Value

func (element *AfterIdElement) Value(value interface{}) string

type AfterIdFormElement

type AfterIdFormElement FormElement

func (*AfterIdFormElement) Class

func (element *AfterIdFormElement) Class(name ...string) *AfterClassFormElement

type AfterMethodFormElement

type AfterMethodFormElement AfterActionFormElement

func (*AfterMethodFormElement) Attributes

func (element *AfterMethodFormElement) Attributes(attrib ...attribs.TagAttr) *AfterAttributesFormElement

func (*AfterMethodFormElement) Value

func (element *AfterMethodFormElement) Value(value interface{}, submitElements ...*SubmitElement) string

type CharSet

type CharSet struct {
	// contains filtered or unexported fields
}

func (CharSet) String

func (charSet CharSet) String() string

type Element

type Element struct {
	Id_         *attribs.Id
	Class_      []attribs.Class
	Attributes_ []attribs.TagAttr
	Content     interface{}

	Tag
	// contains filtered or unexported fields
}

func A

func A(href string) *Element

func Abbreviation

func Abbreviation(title string) *Element

func Address

func Address() *Element

func Article

func Article() *Element

func Aside

func Aside() *Element

func Code

func Code() *Element

func Details

func Details(open ...bool) *Element

func Div

func Div() *Element

func Emphasis

func Emphasis() *Element

func Figure

func Figure() *Element

func FigureCaption

func FigureCaption() *Element
func Footer() *Element

func H1

func H1() *Element

func H2

func H2() *Element

func H3

func H3() *Element

func H4

func H4() *Element

func H5

func H5() *Element

func H6

func H6() *Element
func Header() *Element

func Input

func Input() *Element

func KeyboardInput

func KeyboardInput() *Element

func Main

func Main() *Element

func Mark

func Mark() *Element
func Navigation() *Element

func NewElement

func NewElement(tag HtmlTag) *Element

func Paragraph

func Paragraph() *Element

func SampleOutput

func SampleOutput() *Element

func Section

func Section() *Element

func Span

func Span() *Element

func Strong

func Strong() *Element

func Summary

func Summary() *Element

func Time

func Time(datetime *time_.Time, layout ...string) *Element

func Variable

func Variable() *Element

func (*Element) Class

func (element *Element) Class(value string) *AfterIdElement

func (*Element) Id

func (element *Element) Id(name string) *AfterIdElement

func (Element) Value

func (element Element) Value(value interface{}) string

type FinalFormElement

type FinalFormElement AfterActionFormElement

type FormElement

type FormElement Element

func Form

func Form() *FormElement

func NewFormElement

func NewFormElement() *FormElement

func (*FormElement) Action

func (element *FormElement) Action(path string) *AfterActionFormElement

func (*FormElement) Id

func (element *FormElement) Id(name string) *AfterIdFormElement

type Html

type Html struct {
	Head Element
	Body Element
}

type HtmlTag

type HtmlTag string

type ListElement

type ListElement Element

func NewListElement

func NewListElement(tag HtmlTag) *ListElement

func OrderedList

func OrderedList() *ListElement

func UnorderedList

func UnorderedList() *ListElement

func (*ListElement) Value

func (element *ListElement) Value(items ...interface{}) string

type RenderElement

type RenderElement struct {
	*AfterIdElement
}

type RenderStack

type RenderStack struct {
	// contains filtered or unexported fields
}

type RenderStackHolder

type RenderStackHolder struct {
	// contains filtered or unexported fields
}

func CreateRenderStackHolder

func CreateRenderStackHolder(root *RenderStack, writer io.Writer) *RenderStackHolder

func Writer

func Writer(sessionId client.SessionId) (renderStackHolder *RenderStackHolder, ok bool)

func (*RenderStackHolder) Body

func (renderStackHolder *RenderStackHolder) Body() interface{}

func (*RenderStackHolder) HeadElements

func (renderStackHolder *RenderStackHolder) HeadElements() []interface{}

func (*RenderStackHolder) Writer

func (renderStackHolder *RenderStackHolder) Writer() io.Writer

type SelfElement

type SelfElement Element

func NewSelfElement

func NewSelfElement(tag HtmlTag, selfTerminate bool) *SelfElement

func (SelfElement) Value

func (element SelfElement) Value() string

type SubmitElement

type SubmitElement Element

func Submit

func Submit(value string, classes ...string) *SubmitElement

type Tag

type Tag struct {
	Name       HtmlTag
	Attributes []attribs.TagAttr
	SelfEnd    bool
}

type UnsafeString

type UnsafeString string

func Entity

func Entity(entity string) UnsafeString

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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