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.
convertermarker comment for conversion interfacesenum [yes|no]enable / disable enum supportenum:exclude [PACKAGE:]NAMEexclude wrongly detected enumsextend [PACKAGE:]FUNC...add custom functions for conversionsname NAMErename generated structoutput:file FILEset the output directory for a converteroutput:format FORMATset the output formatoutput:package [PACKAGE:]NAMEset the output package for a converteroutput:raw CODEadd raw code to generated outputstruct:comment COMMENTadd comments to generated structvariablesmarker comment for variable blocks
Method
These settings can only be defined as method comment.
autoMap PATHautomatically match fields from a sub struct to the target structcontext ARGdefine an argument as contextdefault [PACKAGE:]FUNCdefine default target valueenum:map SOURCE TARGETdefine an enum value mappingenum:transform ID CONFIGuse an enum value transformerignore FIELD...ignore fields for a structmap [SOURCE-PATH] TARGET [| FUNC]struct mappingsupdate ARGupdate fields on ARG
Method (inheritable)
These settings can be defined as CLI argument, conversion comment or method comment and are inheritable.
arg:context:regex REGEXset context param regexenum:unknown ACTION|KEYhandle 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*StoTconversionswrapErrorsUsing [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.