go_dreamfactory/sys/configure/structs/ALocalizeConfig.go

38 lines
1.2 KiB
Go

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type _ALocalizeConfig struct {
Key string
}
func New_ALocalizeConfig(_buf map[string]interface{}) (_v interface{}, err error) {
var id string
var _ok_ bool
if id, _ok_ = _buf["__type__"].(string) ; !_ok_ {
return nil, errors.New("type id missing")
}
switch id {
case "LocalizeConfig_CN": return New_LocalizeConfig_CN(_buf);
case "LocalizeConfig_EN": return New_LocalizeConfig_EN(_buf);
case "LocalizeConfig_TW": return New_LocalizeConfig_TW(_buf);
default: return nil, errors.New("unknown type id")
}
return
}
func New_ALocalizeConfig_Body(_buf map[string]interface{}) (_v *_ALocalizeConfig, err error) {
_v = &_ALocalizeConfig{}
{ var _ok_ bool; if _v.Key, _ok_ = _buf["key"].(string); !_ok_ { err = errors.New("key error"); return } }
return
}