Documentation
¶
Index ¶
- func FetchEnvVar(envName string) string
- func FetchEnvVarAsInt16(envName string) int16
- func FetchEnvVarAsInt64(envName string) int64
- func FetchEnvVarAsTime(envName string, layout string) time.Time
- type Utils
- func (u *Utils) ArrayContainsString(s *[]string, str string) bool
- func (u *Utils) GenerateUUID() uuid.UUID
- func (u *Utils) ParseJson(attunityMessage *string) (map[string]any, error)
- func (u *Utils) ParseTimeWithMultipleLayouts(s string, layouts ...string) (time.Time, error)
- func (u *Utils) RandomString(n int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchEnvVarAsInt16 ¶
FetchEnvVarAsInt16 - fetch env var as int16.
func FetchEnvVarAsInt64 ¶
FetchEnvVarAsInt64 - fetch env var as int64.
Types ¶
type Utils ¶
type Utils struct{}
Utils - Utils type.
func (*Utils) ArrayContainsString ¶
ArrayContainsString - check if an array of string contains a given string.
func (*Utils) GenerateUUID ¶
GenerateUUID - generate a UUID.
func (*Utils) ParseTimeWithMultipleLayouts ¶
ParseTimeWithMultipleLayouts - parse the tine with the provided layouts.
Click to show internal directories.
Click to hide internal directories.