Documentation
¶
Index ¶
- Variables
- func ConvertToInt[T int | int64](s string) T
- func DeepCopy[T any](from *T) (*T, error)
- func Distinct(a []string) []string
- func GetConfigOptions() viper.DecoderConfigOption
- func GetCurrDir() string
- func GetCurrentDate() string
- func GetFlag(name string) *string
- func HasFlag(name string) bool
- func MakeDir(dir string)
- func MaskPhoneNumber(phone string) string
- func NewFuncWithIndex(prefix string) func() string
- func RemoveDir(dir string)
- func RuneCountForUTF16(s string) int
- func SimpleCopy[T any](from *T) *T
Constants ¶
This section is empty.
Variables ¶
View Source
var ProjectRoot string
Functions ¶
func ConvertToInt ¶
ConvertToInt преобразует строку в целое число
func GetConfigOptions ¶
func GetConfigOptions() viper.DecoderConfigOption
GetConfigOptions Настраиваем декодирование
func GetCurrDir ¶
func GetCurrDir() string
func GetCurrentDate ¶
func GetCurrentDate() string
GetCurrentDate возвращает текущую дату в формате YYYY-MM-DD
func MaskPhoneNumber ¶
maskPhoneNumber маскирует номер телефона, заменяя 5 цифр перед последними двумя Например, +7 926 111 22 33 становится +7926*****33
func NewFuncWithIndex ¶
func RuneCountForUTF16 ¶
RuneCountForUTF16 возвращает количество символов в строке, учитывая UTF-16
func SimpleCopy ¶
func SimpleCopy[T any](from *T) *T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.