utils

package
v0.0.0-...-eca3c71 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLocales

func LoadLocales()

Initialized language type list.

func Min

func Min(x, y int) int

func ToInt64

func ToInt64(value interface{}) (d int64, err error)

convert any numeric value to int64

Types

type Context

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

func NewContext

func NewContext(controllerName string, actionName string) *Context

func (*Context) ActionName

func (this *Context) ActionName() string

func (*Context) ControllerName

func (this *Context) ControllerName() string

func (*Context) Is

func (this *Context) Is(controllerAndAction string) bool

Jump to

Keyboard shortcuts

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