code: 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
  }
docs: // NewStdFormatter crete a new formatter.