data

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Data Harvest.

Usage

f := formStr{}
dataSlice := data.NewDataSlice()
check := form.New(dataSlice, "en-GB")
check.RenderStr(&f)
d := dataSlice.PullAndReset()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Name             string
	Count            int
	Error            string
	Warning          string
	Checked          bool
	FirstLayerStacks form.FirstLayerStack
	LabelFor         string
	LabelContent     string
	LabelAttr        string // Pre Rendered
}

Data

func (Data) RenderHtml

func (d Data) RenderHtml() template.HTML

Render First Layer Stacks as 'template.HTML'

func (Data) RenderString

func (d Data) RenderString() string

Render First Layer Stacks as 'string'

type DataMap

type DataMap interface {
	form.RenderSecondLayer

	// Pull and Reset Data
	PullAndReset() map[string][]Data
}

DataMap Interface

func NewDataMap

func NewDataMap() DataMap

Create New Data Map.

Note: Do not use as Default Second Renderer, not thread safe.

type DataSlice

type DataSlice interface {
	form.RenderSecondLayer

	// Pull and Reset Data
	PullAndReset() []Data
}

DataSlice Interface

func NewDataSlice

func NewDataSlice() DataSlice

Create new Data Slice

Note: Do not use as Default Second Renderer, not thread safe.

Jump to

Keyboard shortcuts

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