package
1.17.16
Repository: https://github.com/golangid/candi.git
Documentation: pkg.go.dev

# Functions

ByteToString helper with zero allocation.
ElementInSlice check element is exist in slice.
GenerateHMAC generate random string.
GenerateSHA1 generate SHA1.
GetFuncName get function name in string.
GetRuntimeStackLine helper.
IsExistInMap check key is exist in map.
LoadAllFile from path.
LoadAllFileFromFS helper for load all file from file system.
MaskingPasswordURL for hide plain text password from given URL format.
MustParseEnv must parse env to struct, panic if env from target struct tag is not found.
NewMultiError constructor.
ParseDurationExpression with input format HH:mm:ss.
ParseFromQueryParam parse url query string to struct target (with multiple data type in struct field), target must in pointer.
ParseTimeToString helper, return empty string if zero time.
ParseToQueryParam parse struct data to query param.
PrintJSON for show data in pretty JSON with stack trace.
PtrToBool helper.
PtrToFloat helper.
PtrToFloat32 helper.
PtrToInt helper.
PtrToString helper.
PtrToTime helper.
No description provided by the author
No description provided by the author
StreamAllBatch helper func for stream data.
StreamAllBatchDynamic helper func for stream data with dynamic source changes.
StringGreen func.
StringInSlice function for checking whether string in slice str string searched string list []string slice.
StringToByte helper with zero allocation.
StringYellow func.
TimeRemoveNanosecond ...
ToAsiaJakartaTime convert only time location to AsiaJakarta local time.
ToBoolPtr helper.
ToBytes convert all types to json bytes.
ToCamelCase helper.
ToDelimited helper, can use to snake_case or kebab-case.
ToFloat32Ptr helper.
ToFloatPtr helper.
ToInt helper.
ToIntPtr helper.
ToKeyMapSlice transform key of map to slice.
ToMap transform slice to map.
ToString helper.
ToStringPtr helper.
ToTimePtr helper.
ToUTC convert only location to UTC.
TransformSizeToByte helper.
UnwrapPtr take value from pointer.
WrapPtr set pointer from value.

# Constants

Byte ...
Daily const.
DateFormatDDMMYYYY date format.
DateFormatHHmmss date format.
DateFormatMonday date format.
DateFormatYYYYMM date format.
DateFormatYYYYMMDD date format.
DateFormatYYYYMMDDClean date format.
DateFormatYYYYMMDDHHmmss date format.
GByte ...
HeaderAuthorization const.
HeaderCacheControl header const.
HeaderContentType const.
HeaderDisableTrace const.
HeaderExpires header const.
HeaderIfModifiedSince header const.
HeaderLastModified header const.
HeaderMIMEApplicationForm const.
HeaderMIMEApplicationJSON const.
HeaderMIMEApplicationXML const.
HeaderMIMEMultipartForm const.
HeaderMIMEOctetStream const.
HeaderXForwardedFor const.
HeaderXRealIP const.
KByte ...
MByte ...
Monthly const.
OneDay const.
OneMonth const.
OneWeek const.
OneYear const.
RepositoryMongo unit of work for mongodb repository.
RepositorySQL unit of work for sql repository.
TByte ...
TimeFormatLogger const.
TimeZoneAsia constanta.
TokenClaimKey const.
V1 const.
V2 const.
Weekly const.
WORKDIR const for workdir environment.
Yearly const.

# Variables

AsiaJakartaLocalTime location.
Blue color.
Cyan color.
Green color.
Magenta color.
Red color.
Reset color.
White color.
Yellow color.

# Structs

TryCatch model.

# Interfaces

FilterStreamer abstract interface.
MultiError abstract interface.
URLQueryGetter abstraction.