Documentation ¶
Index ¶
- func ConvertFloat64toTimeInHoursMin(f float64) float32
- func ConvertJSONToGoType(res json.RawMessage, customType interface{})
- func ConvertMapToAny(req interface{}, wres interface{}) (err error)
- func ConvertNumericIntoString[constraint int | int64 | float64](number interface{}) string
- func ConvertStringIntoBool(data string) bool
- func ConvertStringIntoFloat(numeric string) float64
- func ConvertStringIntoInt(numeric string) int
- func CreateContext() (ctx context.Context, cancel context.CancelFunc)
- func Debug(format string, a ...interface{})
- func Deserialize(byt []byte, obj interface{}) (err error)
- func Function(skips ...int) string
- func FunctionName(skips ...int) string
- func GetBytes(req interface{}) ([]byte, error)
- func GetFunctionName(temp interface{}) string
- func GetFunctionNameOnly(i interface{}) string
- func ReadResonse(resp *http.Response) (res json.RawMessage, err error)
- func Request(url url.URL, req interface{}, methods ...Method) (res *http.Response, body string, err error)
- func RequestWithTimeout(url url.URL, req interface{}, timeout time.Duration, methods ...Method) (res *http.Response, body string, err error)
- func Serialize(value interface{}) ([]byte, error)
- func SetupLogOutput()
- type Method
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertJSONToGoType ¶
func ConvertJSONToGoType(res json.RawMessage, customType interface{})
func ConvertMapToAny ¶
func ConvertMapToAny(req interface{}, wres interface{}) (err error)
map[string]interface{}
func ConvertNumericIntoString ¶
ConvertNumericIntoString ... convert numeric(integer,float) into string.
func ConvertStringIntoBool ¶
func ConvertStringIntoFloat ¶
ConvertStringIntoFloat ... to convert string into float.
func ConvertStringIntoInt ¶
ConvertStringIntoInt ... convert string into integer.
func CreateContext ¶
func CreateContext() (ctx context.Context, cancel context.CancelFunc)
func Debug ¶
func Debug(format string, a ...interface{})
Debug prints a debug information to the log with file and line.
func Deserialize ¶
Deserialize deserialices the passed []byte into a the passed ptr interface{}
func FunctionName ¶
0 - the same function 1- the calling function ...
func GetFunctionName ¶
func GetFunctionName(temp interface{}) string
func GetFunctionNameOnly ¶
func GetFunctionNameOnly(i interface{}) string
func ReadResonse ¶
func ReadResonse(resp *http.Response) (res json.RawMessage, err error)
func RequestWithTimeout ¶
func SetupLogOutput ¶
func SetupLogOutput()
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.