阅读背景:

在Go中验证结构的惯用方法?

来源:互联网 

I need to validate that a struct value is correct and this means I need to check every field individually, which is easy for a small number of small structs but I was wondering if there's a better way to do it. Here's how I'm doing it right now.I need to validate that a struct value is corre




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: