Go type switch does not catch thrown instances

后端 未结 0 2025
心在旅途
心在旅途 2020-12-06 23:36

I am working with Gin and I am writing simple middleware to catch custom errors. for now I have two Custom Errors like:

type RequestValidationError struct {
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题