============================================================================= CLASS INSTANCE SUPPORT METHODS (replaced invalid class ID constant) ============================================================================= IsClassInstance checks if the value is an instance of any user-defined class
()
| 1149 | // IsClassInstance checks if the value is an instance of any user-defined class |
| 1150 | // This method uses opaque data validation for maximum reliability |
| 1151 | func (v *Value) IsClassInstance() bool { |
| 1152 | return v != nil && v.HasInstanceData() |
| 1153 | } |
| 1154 | |
| 1155 | // HasInstanceData checks if the value has associated Go object data |
| 1156 | // This is the most reliable way to identify our class instances |