common

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMarshalWithEncoderForStruct

func GenerateMarshalWithEncoderForStruct(
	ctx *model.GenerateCtx,
	marshalReceiverName string,
	fields []idl.IdlField,
	structDiscriminatorName *string,
	checkFieldNil bool,
	program *idl.Idl,
) Code

func GenerateTypeDefCode

func GenerateTypeDefCode(ctx *model.GenerateCtx, typeName string, typeDef *idl.IdlTypeDefTy, anchorDiscriminator *[8]byte, program *idl.Idl) Code

func GenerateUnmarshalWithDecoderForStruct

func GenerateUnmarshalWithDecoderForStruct(
	ctx *model.GenerateCtx,
	marshalReceiverName string,
	fields []idl.IdlField,
	structDiscriminatorName *string,
	structDiscriminator *ag_binary.TypeID,
	program *idl.Idl,
) Code

func GetComplexEnumInterfaceMethodName

func GetComplexEnumInterfaceMethodName(enumTypeName string) string

func GetComplexEnumVariantTypeName

func GetComplexEnumVariantTypeName(enumTypeName string, enumVariantName string) string

func GetDiscriminatorName

func GetDiscriminatorName(indentName string) string

func GetEnumVariantsContainerName

func GetEnumVariantsContainerName(enumTypeName string) string

func GetInstructionConstructorName

func GetInstructionConstructorName(instructionExportedName string) string

func GetInstructionEnumName

func GetInstructionEnumName(instructionExportedName string) string

func GetTupleStructElementName

func GetTupleStructElementName(fieldIndex int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL