Documentation ¶
Index ¶
- func HandleError(ctx context.Context, err error, message string)
- func HandleErrorWithCaller(ctx context.Context, err error, message string, caller int)
- func IfThenElse[T any](condition bool, thenValue T, elseValue T) T
- func LoadEnv() error
- func StringToOptString(s *string) oas.OptString
- func ToOpt[O any](v any) O
- func ToOptNil[O any](v any) O
- func ToPtrIfNotNullFunc[T any](nullFlag bool, getValue func() *T) *T
- func ToPtrIfNotNullValue[T any](nullFlag bool, value T) *T
- type ErrorInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
HandleError はエラーを処理し、追加情報を記録する関数です
func HandleErrorWithCaller ¶
func ToPtrIfNotNullFunc ¶
func ToPtrIfNotNullValue ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.