# Functions
AddExtraSpaceIfExist adds a separator.
CheckFileIsExist : check file if exist ,exist -> true , not exist -> false ,*
* @param filename string ,the file name need to check
* @return boolean string
*/.
DeleteExtraSpace remove extra space.
GenerateFiglet generate figlet.
GenerateSnowFlakeID generate snowflake id.
GetCurrentTime get current time.
GetCurrentTimeString get current time with string.
GetCurrentTimeUnix get current time with unix time.
GetFreePort get one free port.
Getparentdirectory : get parent directory of the path ,
* @param path string ,the path you want to get parent directory
* @return string , the parent directory you need
*/.
GetServiceID get service name which will register to service mesh.
GetServiceName get service name which will register to service mesh.
GetTypeName to get struct type name.
GRPCErrIsUnknownWrapper unknown err wrapper only will wrapper the error which is not be encoded P.S :this wrapper is used in grpc.
HTTPErrDecoder decode.
HTTPErrEncoder encode http err only will wrapper the error which is not be encoded P.S :this wrapper is used in grpc.
NewRandomGenerater new generater.
RecordErrorLevelTwo login error and print line , func , and error to gin context.
SliceInSlice if slice in slice.
StringContainsInSlice if value in stringlist.
StringInSlice if value in stringlist.
# Constants
RFC3339FullDate for rfc full date.
# Structs
ValueValidationImpl value validation imple.