Dmitry Panov
|
6e5fa0950d
Prefer the exported value when doing type conversions to preserve wrapped values. Only use reflect.Convert() if the types' kinds match. Closes #329.
|
4 years ago |
Dmitry Panov
|
28cf031cb8
Fixed formatting.
|
5 years ago |
Dmitry Panov
|
52a8eb19c9
Updated documentation, fixed Date export. See #170, closes #182
|
5 years ago |
Dmitry Panov
|
01ead28552
Merge branch 'master' into es6
|
5 years ago |
Dmitry Panov
|
a695b0cdd4
toString() returns String() for wrapped fmt.Stringer and Error() for wrapped error (instead of "[object Object]").
|
5 years ago |
Dmitry Panov
|
98bf47ee8f
Merge branch 'master' into es6
|
5 years ago |
Dmitry Panov
|
2faa37d3de
Added a note about pointers to primitive types and a corresponding test. See #158.
|
5 years ago |
Dmitry Panov
|
4dcd8d29d6
Merge branch 'master' into es6
|
5 years ago |
Dmitry Panov
|
f1752421c4
Added two standard FieldNameMappers. Closes #152.
|
5 years ago |
Dmitry Panov
|
5df89c3d31
Support for malformed UTF-16 strings and property keys. Missing String methods. (#146)
|
5 years ago |
Dmitry Panov
|
a13c43b62b
Proxy (#135)
|
5 years ago |
Oleg Gerasimov
|
5ec49f4aaa
[fix] toReflectValue use fieldNameMapper
|
5 years ago |
Dmitry Panov
|
ebfbf88ae3
Made nested structs addressable if possible. Closes #129.
|
5 years ago |
Dmitry Panov
|
aa89e6a4c7
Removed erroneous IsExported() calls, because these are js names which may be mapped. Closes #114
|
6 years ago |
Dmitry Panov
|
64be363d12
Do not skip the entire anonymous field if its name is mapped to "". Fixes #84
|
6 years ago |
Dmitry Panov
|
7239ea9475
Do not panic when trying to assign to a non-addressable reflect value (see #78).
|
7 years ago |
Dmitry Panov
|
9bbb616c12
Added Object.DefineDataProperty() and Object.DefineAccessorProperty(). See #45
|
8 years ago |
Dmitry Panov
|
c67fd92e12
Added support for non-struct anonymous fields. Excluded unexported fields and methods from FieldNameMapper. Fixes #26.
|
8 years ago |
Dmitry Panov
|
64bfa769d0
Fixed embedded fields shadowing
|
9 years ago |
Dmitry Panov
|
4caa2e8278
Avoid an unnecessary slice allocation.
|
9 years ago |
Dmitry Panov
|
c838446be9
Added type cache, support for embedded structs, and custom field name mapping
|
9 years ago |
Dmitry Panov
|
25773609b6
Initial commit
|
9 years ago |