v0.3.1
This patch fixes any issues regarding basic type-field parsing and matching.
Parser
All types are officially supported.
Generator
- The
.go
generate template usesstrings.Builder
. .tmpl
base template requires refactor.- Template consistency throughout the application has been fixed.
- The roadmap has been updated.
Cyclic Functionality Refactor
In previous versions of Copygen, cyclic types were only partially parsed (intended). Parsing cyclic
types have been refactored such that cyclic types are now FULLY parsed. This means that the user must be sure to handle any circular pointers. For example, a field that contains a subfield, which is also contained in subfield.Fields
(or any of the subfield's subfields...).
Debug
The debug method CountFields
has been removed. Use field.AllFields
to get the length of every field in a field (including itself) or field.Fields
to get the length of the field's fields. In a similar manner, field.AllFields
can be used to PrintFieldRelation
s between to-type and from-type fields. As a result, the method only directly compares the given field slices (as opposed to ALL subfields).