aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/serializer/serializer_test.go
Commit message (Collapse)AuthorAgeFilesLines
* all: use any instead of interface{}Dmitry Vyukov2025-12-221-2/+2
| | | | Any is the preferred over interface{} now in Go.
* pkg/serializer: support primitive user types in interfacesDmitry Vyukov2020-04-251-6/+6
| | | | | | | | | | | | Add handling of user types that has underlying primitive types. Consider: type T int var obj interface{} = T(42) T has kind reflect.Int. But if we serialize obj as just "42", it will be turned into plain int. Detect this case and serialize obj as "T(42)".
* pkg/serializer: test result in the testDmitry Vyukov2020-04-251-3/+49
| | | | | Make the test actually test what we expect and extend slightly for few interesting cases.
* pkg/serializer: do not write field names if it won't save spaceDmitry Vyukov2020-01-261-2/+4
| | | | | | | If we are going to write all values, don't write field names. This only increases size of generated files. The change reduces size of generated files by 5.8% (62870496-59410354=3460142 bytes saved).
* .gometalinter.json: enable gofmtDmitry Vyukov2018-07-311-1/+1
| | | | | | | The part that we want from gofmt is simplify (-s). Fix all code that needs fixing. Update #538
* all: fix gometalinter warningsDmitry Vyukov2018-03-081-1/+1
| | | | Fix typos, non-canonical code, remove dead code, etc.
* pkg/compiler: check and generate typesDmitry Vyukov2017-09-021-0/+44
Move most of the logic from sysgen to pkg/compiler. Update #217