func NewStdFormatter(delim, tmpl string, entry Entry, values map[string]interface{}, timeformat string) (Formatter, error) {
	if delim == "" {
		return nil, e.New("invalid delimitator")
	}
	if tmpl == "" {
		return nil, e.New("invalid template")
	}
	if entry == nil {
		return nil, e.New("invalid entry")
	}
	if values == nil {
		return nil, e.New("invalid values")
	}
	if timeformat == "" {
		timeformat = TimeDateFormat
	}
	return &StdFormatter{
		Delim:      []byte(delim),
		Tmpl:       []byte(tmpl),
		E:          entry,
		Map:        values,
		Idx:        mkindex(entry),
		TimeFormat: timeformat,
	}, nil
}
func NewStdFormatter(delim, tmpl string, entry Entry, values map[string]interface{}, timeformat string) (Formatter, error) {
	if delim == "" {
		return nil, e.New("invalid delimitator")
	}
	if tmpl == "" {
		return nil, e.New("invalid template")
	}
	if entry == nil {
		return nil, e.New("invalid entry")
	}
	if values == nil {
		return nil, e.New("invalid values")
	}
	if timeformat == "" {
		timeformat = TimeDateFormat
	}
	return &StdFormatter{
		Delim:      []byte(delim),
		Tmpl:       []byte(tmpl),
		E:          entry,
		Map:        values,
		Idx:        mkindex(entry),
		TimeFormat: timeformat,
	}, nil
}
func NewStdFormatter ( delim , tmpl string , entry Entry , values map [ string ] interface { } , timeformat string ) ( Formatter , error ) { if delim == " " { return nil , e . New ( " " ) } if tmpl == " " { return nil , e . New ( " " ) } if entry == nil { return nil , e . New ( " " ) } if values == nil { return nil , e . New ( " " ) } if timeformat == " " { timeformat = TimeDateFormat } return & StdFormatter { Delim : [ ] byte ( delim ) , Tmpl : [ ] byte ( tmpl ) , E : entry , Map : values , Idx : mkindex ( entry ) , TimeFormat : timeformat , } , nil }
// NewStdFormatter crete a new formatter.
NewStdFormatter crete a new formatter .