Documentation ¶
Index ¶
- func CacheWriteAlong[T any](bufferSize uint64, dateLastFlushed time.Time, cache cache.Cache[T], entry T) bool
- func DateDiffInMinutes(a time.Time, b time.Time) uint64
- func GetDeclaredField(i interface{}, name string) (reflect.StructField, bool)
- func GetDeclaredFieldValue(i interface{}, name string) (reflect.Value, bool)
- func GetDeclaredFieldValueAs[T any](i interface{}, name string) T
- func GetDeclaredFieldValueAsTime(i interface{}, name string) time.Time
- func GetDeclaredFieldValueAsUint(i interface{}, name string) uint64
- func GetDeclaredMethod(i interface{}, name string) (reflect.Method, bool)
- func GetDeclaredMethodValue(i interface{}, name string) reflect.Value
- func GetDeclaredSurefireField(i interface{}, name string) reflect.Value
- func GetDeclaredSurefireFieldFromPtr(i interface{}, name string) reflect.Value
- func GetDeclaredSurefireMethod(i interface{}, name string) reflect.Value
- func GetDeclaredSurefireMethodFromPtr(i interface{}, name string) reflect.Value
- func GetFieldNonPtrType(i interface{}) reflect.Type
- func GetFieldNonPtrValue(i interface{}) reflect.Value
- func GetFieldPtrType(i interface{}) reflect.Type
- func GetFieldPtrValue(i interface{}) reflect.Value
- func GetOrDefault[T any](v T, d T) T
- func GetPtrDeclaredMethod(i interface{}, name string) (reflect.Method, bool)
- func GetTypeName(i interface{}) string
- func If[T any](c bool, t T, f T) T
- func InterfaceToString(s interface{}) string
- func InvokeSurefireMethod(i interface{}, name string, params ...reflect.Value) []reflect.Value
- func PatternToRegex(p string) *regexp.Regexp
- func PostRequestForResponse[T any](url string, body []byte, headers map[string]string) (int, T)
- func ReplaceByRegex(s string, r string, v string) string
- func RequestForResponse[T any](method string, url string, body []byte, headers map[string]string) (int, T)
- func SetFieldValue(i interface{}, name string, value interface{})
- func SlicesInterception[T string | uint64](t1 []T, t2 []T) []T
- func SlicesIntercepts[T string | uint64](t1 []T, t2 []T) bool
- func SplitByRegex(str string, regex string) []string
- func StackTrace(skip int) []string
- func StackTraceAsString(skip int) string
- func StrFormat(str string, args ...any) string
- func StringToInterface(s string) interface{}
- func StructDeclaredMethod(i interface{}, name string) bool
- func StructImplementsDeclared(i interface{}, name string) bool
- func ToSnakeCase(str string) string
- func TranverseDeclaredMethods(i interface{}, fn func(reflect.Method, reflect.Value))
- func TranverseIterable(m interface{}, fn func(any, any))
- func ValueInSlice[T comparable](list []T, a T) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheWriteAlong ¶
func GetDeclaredField ¶
func GetDeclaredField(i interface{}, name string) (reflect.StructField, bool)
func GetDeclaredFieldValue ¶
func GetDeclaredFieldValueAs ¶
func GetDeclaredMethodValue ¶
func GetFieldNonPtrType ¶
func GetFieldNonPtrValue ¶
func GetFieldPtrType ¶
func GetFieldPtrValue ¶
func GetOrDefault ¶
func GetOrDefault[T any](v T, d T) T
func GetPtrDeclaredMethod ¶
func GetTypeName ¶
func GetTypeName(i interface{}) string
func InterfaceToString ¶
func InterfaceToString(s interface{}) string
func InvokeSurefireMethod ¶
func PatternToRegex ¶
func PostRequestForResponse ¶
func RequestForResponse ¶
func SetFieldValue ¶
func SetFieldValue(i interface{}, name string, value interface{})
func SlicesInterception ¶
func SlicesIntercepts ¶
func SplitByRegex ¶
func StackTrace ¶
func StackTraceAsString ¶
func StringToInterface ¶
func StringToInterface(s string) interface{}
func StructDeclaredMethod ¶
func ToSnakeCase ¶
func TranverseIterable ¶
func ValueInSlice ¶
func ValueInSlice[T comparable](list []T, a T) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.