(name string)
| 198 | } |
| 199 | |
| 200 | func GetArgTypeByName(name string) IArgType { |
| 201 | for _, arg_type := range arg_types { |
| 202 | if arg_type.GetName() == name { |
| 203 | return arg_type |
| 204 | } |
| 205 | if arg_type.HasAliasName(name) { |
| 206 | return arg_type |
| 207 | } |
| 208 | } |
| 209 | panic(fmt.Sprintf("GetArgType failed, name=%s not exists", name)) |
| 210 | } |
| 211 | |
| 212 | func PreRegister() { |
| 213 | // 先注册好各种内置类型 |
no test coverage detected