Documentation ¶
Index ¶
- func CleanCSVFile(filePath string) error
- func CleanupSymbol(symbol string) string
- func DecimalToPercent(v decimal.Decimal) string
- func DecimalToPrice(v decimal.Decimal) string
- func DecimalToPriceNoSign(v decimal.Decimal) 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 NewFromString(v string) decimal.Decimal
- func ParseUrlQueryOrder(order, sort, sortDirection string) (string, bool, bool)
- func RandStringBytes(n int) string
- func RewriteURL(newPath string, c echo.Context) error
- func RoundCurrency(n float64) float64
- 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 DecimalToPrice ¶
DecimalToPrice - Format a decimal number to string in market format Ex: 2000.55 to 2.000,55
func DecimalToPriceNoSign ¶
DecimalToPriceNoSign -
func ExtractYearFromText ¶
func FormatCurrencyDate ¶ added in v0.2.1
func FormatDecimalWithDots ¶
func NewFromString ¶
Convert string to decimal without errors
func ParseUrlQueryOrder ¶
func RandStringBytes ¶
func RewriteURL ¶
func RoundCurrency ¶
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 ¶ added in v0.0.11
type FakeResponseWriter struct { }
func (*FakeResponseWriter) Header ¶ added in v0.0.11
func (r *FakeResponseWriter) Header() http.Header
func (*FakeResponseWriter) Write ¶ added in v0.0.11
func (r *FakeResponseWriter) Write([]byte) (int, error)
func (*FakeResponseWriter) WriteHeader ¶ added in v0.0.11
func (r *FakeResponseWriter) WriteHeader(statusCode int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.