function

package
v0.0.0-...-e50a933 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2017 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

* * 函数格式 ${TIME,exp,fmt} * exp为表达式,如果表达式中出现 day,hour,minute,second 等字段,会被替换成当前时间的对应的数字 * 例如 day - 1,假设当前时间为2017.6.14,那么会替换成 14 - 1,那么最后的时间就是2014.6.13 * fmt 是时间格式化方式 YYYY,MM,DD,HH,mm,ss

Index

Constants

View Source
const (
	ForObject    = "OBJECT"
	ForKeyFlag   = "${KEY}"
	ForValueFlag = "${VALUE}"
)
View Source
const (
	MarkInt = iota
	MarkString
	MarkI
)

Variables

View Source
var (
	TypeMap  = make(map[string]interface{})
	NotValid = reflect.Value{}
)

Functions

func NewFfor

func NewFfor() *ffor

func NewFluasum

func NewFluasum() *fluasum

func NewFtime

func NewFtime() *ftime

func NewFvar

func NewFvar() *fvar

func NewSum

func NewSum() *sum

Types

type Function

type Function interface {
	Parse(string)
	SetCallArgs(args ...interface{})
	Call() (interface{}, error)
}

Jump to

Keyboard shortcuts

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