Documentation ¶
Index ¶
- func CleanCSVFile(filePath string) error
- func CleanupSymbol(symbol string) string
- func ExtractYearFromText(text string) string
- func FormatCNPJ(cnpjNumbers string) string
- func FormatCurrencyDate(format string) string
- func FormatDate(date *time.Time, format string) string
- func FormatDecimalWithDots(n decimal.Decimal) string
- func Init()
- func ParseUrlQueryOrder(order, sort, sortDirection string) (string, bool, bool)
- func RandStringBytes(n int) string
- func RewriteURL(newPath string, c echo.Context) error
- func SearchForString(str string, substr string) (int, int)
- func SliceContains(s []string, str string) bool
- func SliceRemove(s []string, r string) ([]string, bool)
- func StringIsInText(s, substr string) (bool, int, int)
- func StripTags(str string) string
- func StripTagsAndTruncate(str string, length int, omission string) string
- func Truncate(textParam interface{}, length int, ellipsis string) (template.HTML, error)
- func TruncateString(str string, length int, omission string) string
- func UnmaskCNPJ(CNPJ string) string
- func Unzip(src string, dest string) ([]string, error)
- type CustomValidator
- type FakeResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanCSVFile ¶
func CleanupSymbol ¶
func ExtractYearFromText ¶
func FormatCurrencyDate ¶
func FormatDecimalWithDots ¶
func ParseUrlQueryOrder ¶
func RandStringBytes ¶
func RewriteURL ¶
func SliceContains ¶
func SliceRemove ¶
TODO! test this method result ..
func StripTagsAndTruncate ¶
StripTagsAndTruncate - Remove all tags from string and then truncate if need with omission
func TruncateString ¶
TruncateString - Truncate one string with with x words
func UnmaskCNPJ ¶
Types ¶
type CustomValidator ¶
type CustomValidator struct {
Validator *validator.Validate
}
CutstomValidator :
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
Validate : Validate Data
type FakeResponseWriter ¶
type FakeResponseWriter struct { }
func (*FakeResponseWriter) Header ¶
func (r *FakeResponseWriter) Header() http.Header
func (*FakeResponseWriter) WriteHeader ¶
func (r *FakeResponseWriter) WriteHeader(statusCode int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.