You can use validator, gin's default validator, register gorms SQL field types (one time thing) and then register a Struct Validation function where you can do your unique check or register a new unique validation function if requirements are simple. Please see https://github.com/go-playground/validator/blob/v8/README.md and look at the "Custom Field Type" and "Struct Level Validation" examples
Hi everyone! First, I love Gin and have migrated a bunch of projects over to it. However, I seem to be having a tough time getting unit test coverage on the Gin end points and I am sure it is because I am such a noob. Essentially, is there a guide or tutorial for how to adequately test the end points? Or is there a good mocking tool I should use? Again, I am a noob at Go and specifically Gin, so any help would be appreciated!