您可以包括map [string] ServerStruct来满足您的要求。
您的结构可能如下所示:
type YourStruct struct { Success bool ResponseMS int Servers map[string]*ServerStruct}type ServerStruct struct { Application string Owner string [...]}使用一些其他json标签,您将能够解析json。

您可以包括map [string] ServerStruct来满足您的要求。
您的结构可能如下所示:
type YourStruct struct { Success bool ResponseMS int Servers map[string]*ServerStruct}type ServerStruct struct { Application string Owner string [...]}使用一些其他json标签,您将能够解析json。