Documentation ¶
Index ¶
- func Contains(s []interface{}, str string) bool
- func GenerateTrackingID() string
- func GetTestGinContext() *gin.Context
- func JSONError(ctx context.Context, w http.ResponseWriter, err string, code int)
- func PaginationValues(order *string, first *int, after *int) (string, int, int, error)
- func ReturnTracer() trace.Tracer
- func SanitizeText(stringToReplace string) string
- func WithTracer(ctx context.Context, tracer trace.Tracer) context.Context
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
Contains helps to check in a slice of string if it contains a particular string with case insensitivity
func GenerateTrackingID ¶
func GenerateTrackingID() string
func GetTestGinContext ¶
func PaginationValues ¶
func ReturnTracer ¶
func SanitizeText ¶
SanitizeText remove \t & \n from strings
Types ¶
Click to show internal directories.
Click to hide internal directories.