mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 07:51:28 +02:00
refactor: modernize code with go fix
This commit is contained in:
@@ -6,11 +6,6 @@ import (
|
||||
"github.com/go-playground/validator/v10"
|
||||
)
|
||||
|
||||
// Common helper functions
|
||||
func ptr[T any](s T) *T {
|
||||
return &s
|
||||
}
|
||||
|
||||
// Common test function for MustRegisterValidation
|
||||
func TestMustRegisterValidation(t *testing.T) {
|
||||
// Test registering a custom validation
|
||||
|
||||
Reference in New Issue
Block a user