Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallAndLogWithArg ¶
CallAndLogWithArg is a utility function that calls a function with an argument and logs any error that occurs. It is useful for defers to ensure that the function is called properly and any errors are logged.
func CloseAndLog ¶
func CloseAndLog(c Closer)
CloseAndLog is a utility function that closes a resource and logs any error that occurs. It should be used for defers to ensure that the resource is closed properly and any errors are logged.
func CloseIgnoreAndLog ¶
func CloseIgnoreAndLog[I any](c CloserIgnore[I])
CloseIgnoreAndLog is a utility function that closes a resource and logs any error that occurs, and ignores the result. It should be used for defers to ensure that the resource is closed properly and any errors are logged.
func MergeMaps ¶
func MergeMaps[K comparable, V any](base, override map[K]V) map[K]V
MergeMaps merges two maps, with the values from the second map overriding the values from the first map.