feat: new general and auth errors;
feat: NewPointer helper function in utils; refactor: length validation in auth models
This commit is contained in:
5
backend/internal/utils/pointer.go
Normal file
5
backend/internal/utils/pointer.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package utils
|
||||
|
||||
func NewPointer[T any](d T) *T {
|
||||
return &d
|
||||
}
|
||||
Reference in New Issue
Block a user