Categorygithub.com/alifakhimi/simple-utils-go
modulepackage
0.0.10
Repository: https://github.com/alifakhimi/simple-utils-go.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
AnyItemExists ...
No description provided by the author
ArabicPersianAI ...
No description provided by the author
No description provided by the author
BadRequest ...
Cast ...
No description provided by the author
CheckPID ...
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Created ...
CreateFile ensures that the directory exists and returns an open file ready for writing.
CreatePaginateTemplate create pagination using offset.
CreatePaginateTemplateByPage create pagination using page.
No description provided by the author
DecodeSlug decodes a URL-encoded string and checks if it's a valid slug.
DefaultIfZero returns defaultVal if val is the zero value for its type.
No description provided by the author
No description provided by the author
ExportRoutes ...
No description provided by the author
No description provided by the author
Forbidden ...
No description provided by the author
GatewayTimeOut ...
GenerateCode ...
GenerateVerificationCode ...
No description provided by the author
GetAbsPath ...
GetBool ...
GetBoolDefault ...
GetBoolsDefault ...
GetID get id from database.Model.
No description provided by the author
GetIntDefault ...
GetIntFromString ...
GetPIDsDefault ...
GetStringDefault ...
No description provided by the author
GetStringsDefault ...
GetTableName get table name using gorm.
GetUintFromString ...
GetWithCode return template with considering error code.
No description provided by the author
No description provided by the author
No description provided by the author
InternalServerError ...
InternalServerErrorWithData ...
No description provided by the author
IsSlug checks if a string is a valid slug.
IsURLEncoded checks if a string contains URL-encoded characters.
TODO implement NullPID type IsValid check id validation.
ItemExists ...
No description provided by the author
Locked ...
No description provided by the author
MakeSlug takes any string and converts it to a URL-friendly slug.
MakeSlugE takes any string and converts it to a URL-friendly slug.
MergeMaps overwriting duplicate keys, you should handle that if there is a need.
MethodNotAllowed ...
No description provided by the author
No description provided by the author
NotAcceptable ...
NotFound ...
NowTime returns the current local time.
Ok ...
Parse ...
No description provided by the author
ParseFilterQuery ...
No description provided by the author
ParseIDsQuery ...
ParsePaginationParams parse pagination query params.
ParsePID , parses a string id to a PID one.
No description provided by the author
No description provided by the author
PurgeArray purge array.
RandStringCode ...
RemoveIndex remove index from slice or array.
No description provided by the author
No description provided by the author
Reply ...
No description provided by the author
ReverseSlice reverece order slice.
SetToNilIfZeroValue checks if the input value is a zero value.
StatusNotImplemented ...
String ...
No description provided by the author
ToCommonTableFields to common table fields.
ToPID create pid.
TrimString ...
Unauthorized ...
UnprocessableEntity ...
No description provided by the author
Validate ...

# Constants

Education Degree kinds.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Education Degree kinds.
Education Degree kinds.
JWT Claims ----------------------------------------------------------------------- ClaimsClientKey ...
ClaimsExpireTime ...
ClaimsRole ...
ClaimsUsername ...
Military status kinds ...
Military status kinds ...
filters.
limit.
offset.
sorts.
No description provided by the author
Education Degree kinds.
Education Degree kinds.
No description provided by the author
Gender kinds ...
Gender kinds ...
Gender kinds ...
No description provided by the author
HeadersAuthenticated ...
HeadersClient ...
HeadersCustomer ...
HeadersDatabase ...
No description provided by the author
HeadersRestAPI ...
HeadersTokenKey ...
HeadersTracingContext ...
Context Headers ------------------------------------------------------------------ HeadersUser ...
HeadersUserID ...
Military status kinds ...
No description provided by the author
Error error log level.
Info info log level.
Silent silent log level.
Warn warn log level.
Education Degree kinds.
No description provided by the author
No description provided by the author
PENDING ...
No description provided by the author
replace SecretKey with strong key.
Military status kinds ...
No description provided by the author
No description provided by the author
Education Degree kinds.
USER_STATUS_ACTIVE Active.
USER_STATUS_INACTIVE Inactive.
No description provided by the author

# Variables

Dict ...
Dict ...
No description provided by the author
Error block.
ErrCommonTableFieldsIDNotMatch id is not match.
ErrCommonTableFieldsInvalidID invalid id.
ErrCommonTableFieldsInvalidUser invalid user.
No description provided by the author
errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NilPID Null Primary ID.
Valid operators eq , neq , gt , gte , lt , lte , like , nlike , in , nin , cf , pl , pr equal , not equal , greater than , greater than or equal , lower than , lower than or equal , like , not like , in , not in , child of , parent left , parent right.
asc: ASCENDING, desc: DESCENDING.

# Structs

No description provided by the author
CommonTableFields common table fields.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LoggerConfig logger config.
Model ...
NullBool represents a bool that may be null.
NullPID can be used with the standard sql package to represent a UUID value that can be NULL in the database.
PaginateTemplate ...
No description provided by the author
ResponseTemplate standard template for http responses.
No description provided by the author
No description provided by the author
Time ...
No description provided by the author
User ...

# Type aliases

AttributeType ...
DatabaseDriver ...
No description provided by the author
EduDegree ...
No description provided by the author
No description provided by the author
Gender ...
No description provided by the author
No description provided by the author
JSON defined JSON data type, need to implements driver.Valuer, sql.Scanner interface.
LogLevel log level.
MilitaryStatus ...
No description provided by the author
PID Primary ID.
No description provided by the author
No description provided by the author
No description provided by the author
UserMode ...
No description provided by the author