Documentation
¶
Index ¶
- func GenerateMarshalWithEncoderForStruct(ctx *model.GenerateCtx, marshalReceiverName string, fields []idl.IdlField, ...) Code
- func GenerateTypeDefCode(ctx *model.GenerateCtx, typeName string, typeDef *idl.IdlTypeDefTy, ...) Code
- func GenerateUnmarshalWithDecoderForStruct(ctx *model.GenerateCtx, marshalReceiverName string, fields []idl.IdlField, ...) Code
- func GetComplexEnumInterfaceMethodName(enumTypeName string) string
- func GetComplexEnumVariantTypeName(enumTypeName string, enumVariantName string) string
- func GetDiscriminatorName(indentName string) string
- func GetEnumVariantsContainerName(enumTypeName string) string
- func GetInstructionConstructorName(instructionExportedName string) string
- func GetInstructionEnumName(instructionExportedName string) string
- func GetTupleStructElementName(fieldIndex int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTypeDefCode ¶
func GenerateTypeDefCode(ctx *model.GenerateCtx, typeName string, typeDef *idl.IdlTypeDefTy, anchorDiscriminator *[8]byte, program *idl.Idl) Code
func GetDiscriminatorName ¶
func GetInstructionEnumName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.