code: func (ns *Namespace) Chomp(s interface{}) (interface{}, error) {
  	ss, err := cast.ToStringE(s)
  	if err != nil {
  		return "", err
  	}
  
  	res := _strings.TrimRight(ss, "\r\n")
  	switch s.(type) {
  	case template.HTML:
  		return template.HTML(res), nil
  	default:
  		return res, nil
  	}
  
  }
docs: // Chomp returns a copy of s with all trailing newline characters removed.