types

package
v3.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2015 License: MIT, MIT Imports: 2 Imported by: 10

README

shared

shared types and interfaces for go-on packages

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeHTML

func EscapeHTML(s string) string

copied from http://golang.org/src/pkg/html/escape.go modified a bit (inlined escape function and remove error that weren't checked anyway)

Types

type Attribute

type Attribute struct {
	Key   string
	Value string
}

func (Attribute) String

func (a Attribute) String() string

type CSSSer

type CSSSer interface {
	CSS() string
}

type CSSString

type CSSString string

func (CSSString) CSS

func (cs CSSString) CSS() string

func (CSSString) String

func (cs CSSString) String() string

type Class

type Class string

func (Class) Selector

func (c Class) Selector() string

func (Class) String

func (c Class) String() string

type Comment

type Comment string

func (Comment) String

func (c Comment) String() string

type Descr

type Descr string

func (Descr) String

func (d Descr) String() string

type HTMLString

type HTMLString string

func (HTMLString) HTML

func (h HTMLString) HTML() string

func (HTMLString) String

func (h HTMLString) String() string

type HTMLer

type HTMLer interface {
	HTML() string
}

type Id

type Id string

func (Id) Selector

func (id Id) Selector() string

func (Id) String

func (id Id) String() string

type JavaScriptString

type JavaScriptString string

func (JavaScriptString) JavaScript

func (js JavaScriptString) JavaScript() string

func (JavaScriptString) String

func (js JavaScriptString) String() string

type JavaScripter

type JavaScripter interface {
	JavaScript() string
}

type Route

type Route interface {
	Definition() string // was: Route() string
	HasParams() bool
	URL(params ...string) (string, error)
	URLMap(params map[string]string) (string, error)
	MustURL(params ...string)
	MustURLMap(params map[string]string)
}

type Selector

type Selector interface {
	Selector() string
}

func Selectors

func Selectors(sel1 Selector, selects ...Selector) Selector

combine several selectors to one

type SelectorString

type SelectorString string

func (SelectorString) Selector

func (ø SelectorString) Selector() string

type Style

type Style struct {
	Property, Value string
}

func (Style) CSS

func (s Style) CSS() string

func (Style) String

func (s Style) String() string

func (Style) Style

func (s Style) Style() string

func (Style) Val

func (s Style) Val(v string) Style

type Styler

type Styler interface {
	Style() string
}

type Tag

type Tag string

func (Tag) Selector

func (t Tag) Selector() string

func (Tag) String

func (t Tag) String() string

type Text

type Text string

func (Text) String

func (t Text) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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