Versions in this module Expand all Collapse all v1 v1.0.0 Dec 17, 2024 Changes in this version + const ACCESS_LOG_PATH + const ACCESS_LOG_PREFIX + const AFGHANI_SYM + const AGAIN_SYM + const ALPHA_SYM + const AND_SYM + const ANGSTROM_SYM + const APPROX_EQUAL_SYM + const APPROX_EQUAL_SYM2 + const ARROW3_SYM + const ARROW4_SYM + const ARROW5_SYM + const ARROW6_SYM + const ARROW7_SYM + const ARROW8_SYM + const ASC_NODE_SYM + const ASSIGN_SYM + const ATTO_SYM + const AT_SYM + const BAHT_SYM + const BETA_SYM + const BLACK_BISHOP_SYM + const BLACK_KING_SYM + const BLACK_KNIGHT_SYM + const BLACK_MOON_SYM + const BLACK_PAWN_SYM + const BLACK_QUEEN_SYM + const BLACK_ROOK_SYM + const BLUE_CONSOLE + const CENT_SYM + const CHAIN_NUM + const CHAIN_STR + const CHI_SYM + const CHRISTIAN_SYM + const CIRCLE_SYM + const CLOUDY_RAIN_SYM + const CLOUDY_SNOW_SYM + const CLOUDY_SYM + const CLOUDY_THUNDERSTORM + const CLUB_SYM + const CONJUNCTION_SYM + const COPYRIGHT_SYM + const CROSS_SYM + const CUBED_SYM + const CUBE_ROOT_SYM + const CURRENCY_SYM + const CYAN_CONSOLE + const DECAGON2_SYM + const DECAGON3_SYM + const DECAGON4_SYM + const DECAGON_SYM + const DEFAULT_CONSOLE + const DEGREE_BAUME_SYM + const DEGREE_C_SYM + const DEGREE_DELISLE_SYM + const DEGREE_F_SYM + const DEGREE_GALILEO_SYM + const DEGREE_K_SYM + const DEGREE_NEWTON_SYM + const DEGREE_RANKINE_SYM + const DEGREE_REAUMUR_SYM + const DEGREE_ROMER_SYM + const DEGREE_R_SYM + const DEGREE_SYM + const DEGREE_TWADDELL_SYM + const DELTA_SYM + const DESC_CONSOLE + const DESC_CREATE_FAILED + const DESC_CREATE_SUCCESS + const DESC_DELETE_FAILED + const DESC_DELETE_SUCCESS + const DESC_EMPTY_DATA + const DESC_GET_FAILED + const DESC_GET_SUCCESS + const DESC_INVALID_DATA + const DESC_NODE_SYM + const DESC_NOT_FOUND_DATA + const DESC_TEST + const DESC_UPDATE_FAILED + const DESC_UPDATE_SUCCESS + const DIAMOND_SYM + const DIV_ASSIGN_SYM + const DIV_SYM + const DOLLAR_SYM + const DOT_SYM + const DOWN_SYM + const DRACHMA_SYM + const EARTH_SYM + const EMPTY_SET_SYM + const ENNEAGON2_SYM + const ENNEAGON3_SYM + const ENNEAGON4_SYM + const ENNEAGON_SYM + const EPSILON_SYM + const ERROR_LOG_PATH + const ERROR_LOG_PREFIX + const ETA_SYM + const EURO_SYM + const EXISTS_SYM + const EXIT_SYM + const EmailLenReg + const FEMTO_SYM + const FORALL_SYM + const FRANC_SYM + const GAMMA_SYM + const GIGA_SYM + const GRAY_CONSOLE + const GREATER_EQUAL_SYM + const GREATER_EQUAL_SYM2 + const GREATER_SYM + const GREEN_CONSOLE + const HEART_SYM + const HEPTAGON2_SYM + const HEPTAGON3_SYM + const HEPTAGON4_SYM + const HEPTAGON_SYM + const HEXAGON2_SYM + const HEXAGON3_SYM + const HEXAGON4_SYM + const HEXAGON_SYM + const IMPLIES10_SYM + const IMPLIES13_SYM + const IMPLIES15_SYM + const IMPLIES2_SYM + const IMPLIES3_SYM + const IMPLIES4_SYM + const IMPLIES5_SYM + const IMPLIES6_SYM + const IMPLIES7_SYM + const IMPLIES8_SYM + const IMPLIES9_SYM + const IMPLIES_SYM + const INDIAN_SYM + const INFINITY_SYM + const INFO_LOG_PATH + const INFO_LOG_PREFIX + const INFO_SYM + const INPUT_SYM + const INTERSECTION_SYM + const IOTA_SYM + const ISLAMIC_SYM + const ITEM_SYM + const JEWISH_SYM + const JUPITER_SYM + const KAPPA_SYM + const KILO_SYM + const LAMBDA_SYM + const LEFT_SYM + const LESS_EQUAL_SYM + const LESS_EQUAL_SYM2 + const LESS_SYM + const LEU_SYM + const LIRA_SYM + const MAGENTA_CONSOLE + const MARS_SYM + const MEGA_SYM + const MERCURY_SYM + const MILLI_SYM + const MINUS_ASSIGN_SYM + const MINUS_SYM + const MOD_SYM + const MOON_SYM + const MORE_SYM + const MULT_ASSIGN_SYM + const MULT_SYM + const MU_SYM + const NAIRA_SYM + const NANO_SYM + const NEPTUNE_SYM + const NOT_EQUAL_SYM + const NOT_EQUAL_SYM2 + const NOT_EXISTS_SYM + const NOT_FORALL_SYM + const NOT_SYM + const NO_SYM + const NUMERO_SYM + const NU_SYM + const OCTAGON2_SYM + const OCTAGON3_SYM + const OCTAGON4_SYM + const OCTAGON_SYM + const OHM_SYM + const OK_SYM + const OMEGA_SYM + const OMICRON_SYM + const OPPOSITION_SYM + const ORANGE_CONSOLE + const OR_SYM + const PENTAGON_SYM + const PERMILLE_SYM + const PERMYRIAD_SYM + const PESETA_SYM + const PHI_SYM + const PICO_SYM + const PINK_CONSOLE + const PI_SYM + const PI_SYM2 + const PLUSMINUS_SYM + const PLUS_ASSIGN_SYM + const PLUS_SYM + const PLUTO_SYM + const POUND_SYM + const POWER_12_SYM + const POWER_6_SYM + const POWER_9_SYM + const PSI_SYM + const PURPLE_CONSOLE + const PasswordDigitReg + const PasswordLenReg + const PasswordLowerReg + const PasswordSpecialReg + const PasswordUpperReg + const PhoneReg + const QUADRANGLE_SYM + const QUESTION_SYM + const RAIN_CLOUDY_SYM + const RAIN_SNOW_SYM + const RAIN_SYM + const RAIN_THUNDERSTORM_SYM + const RED_CONSOLE + const REGISTER_SYM + const RHO_SYM + const RIAL_SYM + const RIGHT_SYM + const ROUBLE_SYM + const RUPEE_SYM + const SATURN_SYM + const SCOPE_SYM + const SECTION_SYM + const SEXTILE_SYM + const SIGMA_SYM + const SNOW_CLOUDY_SYM + const SNOW_SYM + const SNOW_THUNDERSTORM_SYM + const SPADE_SYM + const SPAN_HOR_SYM + const SPAN_VER_SYM + const SQUARED_SYM + const SQUARE_ROOT_SYM + const SQUARE_SYM + const SUBSET_EQUAL_SYM + const SUBSET_SYM + const SUNNY_CLOUDY_SYM + const SUNNY_RAIN_SYM + const SUNNY_SNOW_SYM + const SUNNY_SYM + const SUNNY_THUNDERSTORM_SYM + const SUN_SYM + const SUPERSET_EQUAL_SYM + const SUPERSET_SYM + const TAU_SYM + const TERA_SYM + const THETA_SYM + const THUNDERSTORM_CLOUDY + const THUNDERSTORM_SYM + const TO_DOWN_SYM + const TO_LEFT_SYM + const TO_RIGHT_CON + const TO_UP_SYM + const TRADEMARK_SYM + const TRIANGLE_SYM + const TRINE_SYM + const UNION_SYM + const UPSILON_SYM + const UP_SYM + const URANUS_SYM + const UsernameReg + const VENUS_SYM + const VIETNAM_SYM + const WHITE_BISHOP_SYM + const WHITE_CONSOLE + const WHITE_KING_SYM + const WHITE_KNIGHT_SYM + const WHITE_PAWN_SYM + const WHITE_QUEEN_SYM + const WHITE_ROOK_SYM + const XI_SYM + const YELLOW_CONSOLE + const YEN_SYM + const YIN_YANG_SYM + const YOCTO_SYM + const ZEPTO_SYM + const ZETA_SYM + var CtxBg = context.Background() + var DOUBLE_ALPHA = IFontBannerType + var ErrorComparePassword error = errors.New("password not match") + var ErrorEmailLength error = errors.New("email must be between 8 and 32 characters long") + var ErrorHashPassword error = errors.New("error when encrypt password") + var ErrorInvalidEmail error = errors.New("email is invalid") + var ErrorInvalidPassword error = errors.New(...) + var ErrorInvalidPhone error = errors.New("phone is invalid") + var ErrorInvalidUsername error = errors.New(...) + var ErrorInvalidUuid error = errors.New("uuid is invalid") + var ErrorPasswordEmptyDigit error = errors.New("password must contain at least one digit") + var ErrorPasswordEmptyLower error = errors.New("password must contain at least one lowercase letter") + var ErrorPasswordEmptySpecial error = errors.New("password must contain at least one special character") + var ErrorPasswordEmptyUpper error = errors.New("password must contain at least one uppercase letter") + var ErrorPasswordLength error = errors.New("password must be between 8 and 32 characters long") + var ErrorRequiredUuid error = errors.New("uuid is required") + func Abs(num int) int + func AbsF(num float64) float64 + func Add(num1, num2 int) int + func AddF(num1, num2 float64) float64 + func AddStruct(structInstance interface{}, fields map[string]interface{}) interface + func AppendFile(path string, data []string) error + func AreaCircle(radius int) float64 + func AreaCircleF(radius float64) float64 + func AreaCone(radius, height int) float64 + func AreaConeF(radius, height float64) float64 + func AreaCube(side int) int + func AreaCubeF(side float64) float64 + func AreaCylinder(radius, height int) float64 + func AreaCylinderF(radius, height float64) float64 + func AreaEllipse(major, minor int) float64 + func AreaEllipseF(major, minor float64) float64 + func AreaParallelogram(base, height int) int + func AreaParallelogramF(base, height float64) float64 + func AreaPolygon(lenSide float64, numSide int) float64 + func AreaRect(length, width int) int + func AreaRectF(length, width float64) float64 + func AreaRhombus(diag1, diag2 int) int + func AreaRhombusF(diag1, diag2 float64) float64 + func AreaSphere(radius int) float64 + func AreaSphereF(radius float64) float64 + func AreaSquare(side int) int + func AreaSquareF(side float64) float64 + func AreaTrapezoid(base1, base2, height int) float64 + func AreaTrapezoidF(base1, base2, height float64) float64 + func AreaTriangle(base, height int) int + func AreaTriangleF(base, height float64) float64 + func At(s string, index int) string + func Banner(font IFontBannerType, s string) + func BoolToString(data bool) string + func BytesToString(data []byte) string + func CamelCase(s string) string + func Capitalize(sentence string) string + func Cbrt(number int) int + func CbrtF(number float64) float64 + func Ceil(num float64) int + func CheckHref(url string) (bool, error) + func CheckHrefStatusCode(url string) (int, error) + func CheckPort(protocol, hostname string, port int) bool + func Chunk[T comparable](array []T, size int) [][]T + func Clamp(value int, min int, max int) int + func CleanFile(path string) error + func CloneStruct(structInstance interface{}) interface + func Cls() + func Cmd(defaultCmmand string, windowsCmmand ...string) + func CodePoint(input string) []int + func CodePointAt(s string, index int) int + func Compact[T interface{}](arr []T) []T + func Concat(s ...string) string + func Confirm(label string) (bool, error) + func ConnectMinio(ctx context.Context, conf MinioConf) (*minio.Client, error) + func ConnectMongo(ctx context.Context, uri string) (*mongo.Client, error) + func ConnectRedis(addr, pass string, dbNo ...int) *redis.Client + func ConnectRedisUri(uri string) *redis.Client + func CopyFile(oldPath, newPath string) error + func Cos(angle int) float64 + func CosF(angle float64) float64 + func Count(s string, substr ...string) int + func CreateBarChart(options *IBarChartOpts) + func CreateCanvas(size int, hexColor string) (*image.RGBA, error) + func CreateDir(dir string) error + func CreateFile(path string) error + func CreateLineChart(options *ILineChartOpts) + func CreatePath(relativePath string) error + func CreatePieChart(options *IPieChartOpts) + func CurrentDir() (string, error) + func CustomCase(s, sep string) string + func DashDate(date ...interface{}) string + func Day() int + func DecodeData(input []byte) ([]byte, error) + func DecodeHref(s string) string + func DecryptFile(source string, password []byte) + func DecryptPassword(password, receivedPassword string) error + func DeferWrapper(mainFunc func() error, cleanupFunc func()) error + func DetectError(err interface{}) string + func DiagRect(length, width int) float64 + func DiagRectF(length, width float64) float64 + func DiffTime(t1, t2 time.Time) time.Duration + func DiffTimeNow(startTime time.Time) time.Duration + func Diff[T comparable](a, b []T) []T + func Distance(speed, time float64) float64 + func Divide(num1, num2 int) int + func DivideF(num1, num2 float64) float64 + func DotDate(date ...interface{}) string + func Drop[T comparable](arr []T, n ...int) []T + func EncodeData(input []byte) ([]byte, error) + func EncodeHref(s string) string + func EncryptFile(source string, password []byte) + func EncryptPassword(password string) (string, error) + func EndsWith(s string, substr string) bool + func Equal[T comparable](a, b T) bool + func Escape(s string) string + func FIndex(s string, substr string) int + func Factorial(num int) int + func FilterBy[T comparable](arr []T, f func(T) bool) []T + func FindBy[T comparable](arr []T, f func(T) bool) T + func FirstUpperCase(s string) string + func FloatToString(data float64) string + func Floor(num float64) int + func ForBy[T comparable](arr []T, f func(T)) + func FromCodePoint(codePoint ...int) string + func FromCodePointAt(codePoint int) string + func GetStruct(structInstance interface{}, fieldName string) interface + func GetTagName(structInstance interface{}) []string + func Go2Md(inputFilePath string, outputFilePath string) + func HasEmptyInStruct(structInstance interface{}, fieldName string) bool + func HasInStruct(structInstance interface{}, fieldName string) bool + func HealthCheck() + func Help(name string, options []*IHelpOptions) + func HexToRGBA(hex string) (color.RGBA, error) + func HierarchyDir(dir string) ([]string, error) + func Hour() int + func HrefConnectTime(url string) (float64, error) + func HrefHeader(url string) (http.Header, error) + func ISODate(date ...interface{}) string + func InRange(value int, min int, max int) bool + func Includes(s string, substr string) bool + func IncludesArr[T comparable](array []T, value T) bool + func IndexBy[T comparable](arr []T, f func(T) bool) int + func IndexOfArr[T comparable](arr []T, value T) int + func IndexSubStr(s, substr string) (int, int) + func IntToString(data int) string + func Intersect[T comparable](slices ...[]T) []T + func IntervalFunc(fn func(), timeout int) + func IsArray(v interface{}) bool + func IsBool(v interface{}) bool + func IsByte(v interface{}) bool + func IsChannel(v interface{}) bool + func IsComplex(v interface{}) bool + func IsDigit[T byte | rune](char T) bool + func IsEdu(emailStr string) (bool, error) + func IsEmail(emailStr, customDomain string) (bool, error) + func IsEmpty(v interface{}) bool + func IsError(v interface{}) bool + func IsEven(num int) bool + func IsExistDir(dir string) (bool, error) + func IsExistFile(path string) (bool, error) + func IsFloat(v interface{}) bool + func IsFunc(v interface{}) bool + func IsGmail(emailStr string) (bool, error) + func IsInt(v interface{}) bool + func IsLetter[T byte | rune](char T) bool + func IsLower[T byte | rune](char T) bool + func IsMap(v interface{}) bool + func IsMatchReg(regex, chain string) bool + func IsNil(v interface{}) bool + func IsNumber(v interface{}) bool + func IsOdd(num int) bool + func IsOutlook(emailStr string) (bool, error) + func IsPassword(password string) (bool, error) + func IsPerfectSquare(num int) bool + func IsPhone(phone string) (bool, error) + func IsPointer(v interface{}) bool + func IsPrime(num int) bool + func IsRune(v interface{}) bool + func IsSlice(v interface{}) bool + func IsString(v interface{}) bool + func IsStruct(v interface{}) bool + func IsUUID(input string) (bool, error) + func IsUintptr(v interface{}) bool + func IsUnInt(v interface{}) bool + func IsUndefined(v interface{}) bool + func IsUnsafePointer(v interface{}) bool + func IsUpper[T byte | rune](char T) bool + func IsUsername(username string) (bool, error) + func IsYahoo(emailStr string) (bool, error) + func IsZero(v interface{}) bool + func Join(s []string, separator string) string + func KebabCase(s string) string + func KeyBy[T comparable](arr []T, f func(T) bool) int + func LIndex(s string, substr string) int + func LTrim(s string) string + func Lines(s string) int + func LoadBalancer(proxyPort string, backends []IBackend) + func LockFunc(callback interface{}) interface + func Log(number, base int) int + func Log10(number int) int + func Log10F(number float64) float64 + func Log2(number int) int + func Log2F(number float64) float64 + func LogF(number, base float64) float64 + func LongDate(date ...interface{}) string + func LowerFirst(s string) string + func Lower[T byte | rune](char T) T + func Lowers(s string) string + func LsDir(dir string) ([]string, error) + func MapAsString[T string | []string](data map[string]T) string + func MapBy[T comparable, R comparable](arr []T, f func(T) R) []R + func MatchIndexReg(regex, chain string) int + func MatchReg(regex, chain string) []string + func Max(nums ...int) int + func MaxArr[...](arr []T) T + func MaxF(nums ...float64) float64 + func Mean(nums ...int) int + func MeanF(nums ...float64) float64 + func MergeStruct(structs ...interface{}) interface + func Merge[T comparable](arr ...[]T) []T + func Min(nums ...int) int + func MinArr[...](arr []T) T + func MinF(nums ...float64) float64 + func Minute() int + func Month() int + func MonthDate(date ...interface{}) string + func Most[T comparable](arr []T) T + func Multi(nums ...int) int + func MultiF(nums ...float64) float64 + func NormalDate(date ...interface{}) string + func OpenHref(url string) + func OutputColor[T interface{}](color string, output T) + func OutputError(output string, err string) + func OutputSuccess(output string) + func PNGToJPG(input, output string) error + func PadEnd(s string, addAmount int, padChar byte) string + func PadStart(s string, addAmount int, padChar byte) string + func ParallelizeFunc(functions ...func()) + func PeriCircle(radius int) float64 + func PeriCircleF(radius float64) float64 + func PeriCube(side int) int + func PeriCubeF(side float64) float64 + func PeriRect(length, width int) int + func PeriRectF(length, width float64) float64 + func PeriSquare(side int) int + func PeriSquareF(side float64) float64 + func PeriTriangle(side1, side2, side3 int) int + func PeriTriangleF(side1, side2, side3 float64) float64 + func Pow(base, exp int) int + func Pow2(base int) int + func Pow2F(base float64) float64 + func Pow3(base int) int + func Pow3F(base float64) float64 + func PowF(base, exp float64) float64 + func Print(args ...interface{}) + func PrintUsage(name string, options []*IHelpOptions) + func Printf(format string, args ...interface{}) + func Println(args ...interface{}) + func Profile(cpuprofile, memprofile string) + func Proxy(port string, urls []string) + func Pytago(side1, side2 int) float64 + func PytagoF(side1, side2 float64) float64 + func RTrim(s string) string + func RWLockFunc(callback interface{}) interface + func RandDigit(n int) string + func RandID() string + func RandNum(min, max int) int + func RandStr(n int) string + func ReadFileByLine(path string) ([]string, error) + func ReadFileObj[T any](path string) ([]T, error) + func ReadJSON[T any](path string, configuration *T) error + func ReadPath(relativePath string) ([]byte, error) + func ReadRequest(ctxBind func() error, ctxReq func() context.Context, req interface{}) error + func ReadTOML[T any](path string, configuration *T) error + func ReadYAML[T any](path string, configuration *T) error + func RejectBy[T comparable](arr []T, f func(T) bool) []T + func RemainFunc(fn func(), attempts int) + func Remainder(num1, num2 int) int + func RemoveDir(dir string) error + func RemoveFile(path string) error + func RemoveStruct(structInstance interface{}, fields ...string) interface + func RenameFile(oldPath, newPath string) error + func Repeat(s string, count int) string + func Replace(s string, old string, new string) string + func RetryFunc(fn func() error, attempts int, sleep int) (err error) + func Reverse(s string) string + func ReverseDate(date ...interface{}) string + func Root(number, n int) int + func RootF(number, n float64) float64 + func RotateLog(output string, maxFileSize ...int64) + func Round(num float64) int + func RunJob(duration, stopAfter uint64, callback func()) + func RunTimeFunc(startTime time.Time, task func()) time.Duration + func RuneToString(data rune) string + func ScanPort(protocol, hostname string, start, end int) + func Second() int + func Select(label string, options []string) (string, error) + func SetCtx(ctx context.Context) + func SetStruct(structInstance interface{}, fieldName string, value interface{}) + func Sin(angle int) float64 + func SinF(angle float64) float64 + func SleepHour(hour int) + func SleepMinute(minute int) + func SleepSecond(second int) + func Slice(s string, index ...int) string + func SnakeCase(s string) string + func SpaceCase(s string) string + func SpaceDate(date ...interface{}) string + func Speed(distance, time float64) float64 + func Splice(s string, start, replaceCount int, items ...string) string + func Split(s string, separator string) []string + func Sprint(args ...interface{}) string + func Sprintf(format string, args ...interface{}) string + func Sprintln(args ...interface{}) string + func Sqrt(number int) int + func SqrtF(number float64) float64 + func Starter() + func StartsWith(s string, substr string) bool + func StringToBool(data string) bool + func StringToBytes(data string) []byte + func StringToFloat(data string) float64 + func StringToInt(data string) int + func StringsToBytes(data []string) []byte + func StructToMap(data interface{}) map[string]interface + func StructToString(data interface{}) string + func Sub(num1, num2 int) int + func SubF(num1, num2 float64) float64 + func SubStr(s string, start int, length ...int) string + func Sum(nums ...int) int + func SumArr[...](arr []T) T + func SumF(nums ...float64) float64 + func Tan(angle int) float64 + func TanF(angle float64) float64 + func TerminalClock() + func Time(distance, speed float64) float64 + func ToHour(hour int) time.Duration + func ToMinute(minute int) time.Duration + func ToSecond(second int) time.Duration + func ToString(data interface{}) string + func Trim(s string) string + func TrimBlank(s string) string + func TrimPrefix(s, prefix string) string + func TrimSuffix(s, suffix string) string + func Truncate(s string, length int, omission ...string) string + func TruncateFile(path string, size int64) error + func UTCDate(date ...interface{}) string + func UUID() string + func UnderlineDate(date ...interface{}) string + func Unescape(s string) string + func Unix() int64 + func UnixMicro() int64 + func UnixMicroToTime(micro int64) time.Time + func UnixMilli() int64 + func UnixMilliToTime(milli int64) time.Time + func UnixNano() int64 + func UnixNanoToTime(nano int64) time.Time + func Unzip(zipFile, destFolder string) error + func UpperFirst(s string) string + func Upper[T byte | rune](char T) T + func Uppers(s string) string + func VolCone(radius, height int) float64 + func VolConeF(radius, height float64) float64 + func VolCube(side int) int + func VolCubeF(side float64) float64 + func VolCylinder(radius, height int) float64 + func VolCylinderF(radius, height float64) float64 + func VolRect(length, width, height int) int + func VolRectF(length, width, height float64) float64 + func VolSphere(radius int) float64 + func VolSphereF(radius float64) float64 + func Weekday() int + func Words(s string) []string + func WriteAccessLog(msg string) + func WriteErrorLog(msg string, err interface{}) + func WriteFile(path string, data []string) error + func WriteFileObj[T any](path string, data T) error + func WriteInfoLog(msg string) + func WriteLog(prefix, msg, filePath string, err ...interface{}) + func WriteLogDefault(logID, logMessage, output string) + func WritePath(relativePath string, content []byte) error + func Year() int + func Zip(zipFileName string, files []string) error + type Ctx context.Context + func GetCtx() Ctx + type DelayedResult struct + HasReturn bool + Value T + func DelayF[T any](f func() T, timeout int) DelayedResult[T] + func DelayFunc(f func(), timeout int) DelayedResult[struct{}] + type FileInfoStruct struct + All os.FileInfo + IsDir bool + ModTime string + Mode os.FileMode + Name string + Size int64 + Sys interface{} + func FileInfo(path string) (*FileInfoStruct, error) + type Function struct + Body string + Desc string + Import string + Name string + Order string + func ExtractFunctions(code []byte) []Function + func (f *Function) HighlightBody() string + func (f *Function) HighlightDesc() string + func (f *Function) HighlightImport() string + func (f *Function) HighlightName() string + type IBackend struct + IsDead bool + URL string + func (backend *IBackend) GetIsDead() bool + func (backend *IBackend) SetDead(b bool) + type IBarChartItem struct + Name string + Values []float64 + type IBarChartOpts struct + Items []IBarChartItem + Output string + Subtitle string + Title string + XAxis []string + type ICPU struct + Cores int + Family string + ModelName string + Speed string + func CPU() (*ICPU, error) + type ICronJob struct + func NewCronJob(duration, stopAfter time.Duration, callback func()) *ICronJob + func (cj *ICronJob) StartJob() + func (cj *ICronJob) WaitJob() + type IDisk struct + FreeSpace uint64 + TotalSpace uint64 + UsedSpace uint64 + UsedSpacePercent string + func Disk() (*IDisk, error) + type IFontBannerType map[string][3]string + type IGracefulShutdown struct + HeaderTimeout time.Duration + Port string + ShutdownMsg string + SleepTimout time.Duration + StartMsg string + func (igs *IGracefulShutdown) GracefulShutdown() + type IHelpActionBool struct + Action func(bool) + type IHelpActionInt struct + Action func(int) + type IHelpActionStr struct + Action func(string) + type IHelpOptions struct + Action interface{} + Desc string + Opt string + Val interface{} + type ILbConfig struct + Backends []IBackend + ProxyPort string + type ILineChartItem struct + Name string + Values []float64 + type ILineChartOpts struct + Items []ILineChartItem + Output string + Subtitle string + Title string + XAxis []string + type ILocalCache struct + Lock sync.RWMutex + Set map[string]string + func NewLocalCache() *ILocalCache + func (c *ILocalCache) AllLocalCache() map[string]string + func (c *ILocalCache) DelLocalCache(key string) + func (c *ILocalCache) FlushLocalCache() + func (c *ILocalCache) GetLocalCache(key string) (string, error) + func (c *ILocalCache) SetLocalCache(key, value string) + type ILog struct + Message string + Output string + Prefix string + type IPieChartItem struct + Name string + Values float64 + type IPieChartOpts struct + Format string + Items []IPieChartItem + Output string + Radius float64 + ShowLabel bool + Subtitle string + Title string + type ISystem struct + Arch string + FreeMemory uint64 + Hostname string + Name string + NumsProcs uint64 + Platform string + TotalMemory uint64 + UsedMemory uint64 + UsedMemoryPercent string + func System() (*ISystem, error) + type ITest struct + Input string + Name string + Want bool + WantErr bool + type ITmpCache struct + Expires time.Duration + Set *cache.Cache + func NewTmpCache(expires ...time.Duration) *ITmpCache + func (c *ITmpCache) AllTmpCache() map[string]string + func (c *ITmpCache) DelTmpCache(cacheKey string) + func (c *ITmpCache) FlushTmpCache() + func (c *ITmpCache) GetTmpCache(cacheKey string) interface{} + func (c *ITmpCache) SetTmpCache(cacheKey string, value interface{}, expireTime time.Duration) + type MinioConf struct + AccessKey string + Bucket string + Endpoint string + Location string + SecretKey string + UseSSL bool + type PgDB struct + Client *sql.DB + func ConnectPostgres(dsn string) (*PgDB, error) v0 v0.1.0 Aug 8, 2024