Settings
Before configuring settings here it is useful to understand how converter generation works and how to configure nested settings.
Conversion
These settings can only be defined as CLI argument or conversion comment.
converter
marker comment for conversion interfacesenum [yes|no]
enable / disable enum supportenum:exclude [PACKAGE:]NAME
exclude wrongly detected enumsextend [PACKAGE:]FUNC...
add custom functions for conversionsname NAME
rename generated structoutput:file FILE
set the output directory for a converteroutput:format FORMAT
set the output formatoutput:package [PACKAGE:]NAME
set the output package for a converteroutput:raw CODE
add raw code to generated outputstruct:comment COMMENT
add comments to generated structvariables
marker comment for variable blocks
Method
These settings can only be defined as method comment.
autoMap PATH
automatically match fields from a sub struct to the target structcontext ARG
define an argument as contextdefault [PACKAGE:]FUNC
define default target valueenum:map SOURCE TARGET
define an enum value mappingenum:transform ID CONFIG
use an enum value transformerignore FIELD...
ignore fields for a structmap [SOURCE-PATH] TARGET [| FUNC]
struct mappingsupdate ARG
update fields on ARG
Method (inheritable)
These settings can be defined as CLI argument, conversion comment or method comment and are inheritable.
arg:context:regex REGEX
set context param regexenum:unknown ACTION|KEY
handle unexpected enum valuesignoreMissing [yes,no]
ignore missing struct fieldsignoreUnexported [yes,no]
ignore unexported struct fieldsmatchIgnoreCase [yes,no]
case-insensitive field matchingskipCopySameType [yes,no]
skip copying types when the source and target type are the sameupdate:ignoreZeroValueField [yes:no]
don't update fields with zero valuesuseUnderlyingTypeMethods [yes|no]
use underlying types when looking for existing methodsuseZeroValueOnPointerInconsistency [yes|no]
Use zero values for*S
toT
conversionswrapErrorsUsing [PACKAGE]
wrap errors using a custom implementationwrapErrors [yes,no]
wrap errors with extra information
Custom Function
These settings can only be defined as custom function comment.