utils

package
v0.0.0-...-ed3c113 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPrimitive

func IsPrimitive(data interface{}) (ok bool)

func SortInterface

func SortInterface(length int, less SortLess, swap SortSwap) sort.Interface

func ToString

func ToString(args ...interface{}) string

Types

type Attribute

type Attribute map[string]interface{}

func (Attribute) Get

func (attrs Attribute) Get(key string) interface{}

func (Attribute) GetString

func (attrs Attribute) GetString(key string) string

func (Attribute) Item

func (attrs Attribute) Item(name string, value ...interface{}) (attr interface{})

func (Attribute) Set

func (attrs Attribute) Set(key string, value interface{}) interface{}

func (Attribute) SetProperty

func (props Attribute) SetProperty(key string, value string, keepToken ...bool) string

type SortLess

type SortLess func(i, j int) bool

type SortSwap

type SortSwap func(i, j int)

Jump to

Keyboard shortcuts

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