阅读背景:

如何编写Go函数来接受不同的结构?

来源:互联网 

I am writing a function that parses a config JSON file and using json.Unmarshal stores its data in a struct. I've done some research and it's gotten me the point where I have a Config struct and a Server_Config struct as a field in config to allow me to add more fields as I want different config-like structs. I am writing a function that parses a config JS




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

分享到: