我正在尝试以编程方式创建一些API文档,我有这个:typeAPIDocstruct{RoutestringResolutionValuestruct{vstring}}然后我尝试这样做:json.NewEncoder(w).Encode(APIDoc.ResolutionValue{"foo"})但是上面写着APIDoc.ResolutionValueundefined(typeAPIDochasnomethodResolutionValue)所以我采取了这种做法:typeResolutionValuestruct{vstring}typeAPIDocstruct{Routestrin