Documentation
¶
Index ¶
- func EnumPtr[T StringEnum](field string, old *string, current *T) error
- func IntPtr(field string, old *int, current *int) error
- func String(field string, old *string, current string) error
- func StringPtr(field string, old *string, current *string) error
- func UUID(field string, old *uuid.UUID, current uuid.NullUUID) error
- type ErrEditPrerequisiteFailed
- type StringEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnumPtr ¶
func EnumPtr[T StringEnum](field string, old *string, current *T) error
EnumPtr validates enum pointer fields using generics
Types ¶
type ErrEditPrerequisiteFailed ¶
type ErrEditPrerequisiteFailed struct {
// contains filtered or unexported fields
}
func (*ErrEditPrerequisiteFailed) Error ¶
func (e *ErrEditPrerequisiteFailed) Error() string
type StringEnum ¶
Click to show internal directories.
Click to hide internal directories.