typeconv

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByName

func ByName(cdcType string, foundTypes []types.CompositeType) (string, string)

ByName receives Cadence type name then returns corresponding Go type name.

func MaybeArrayType

func MaybeArrayType(cdcType string, foundTypes []types.CompositeType) (bool, string, string)

MaybeArrayType checks param is Cadence array or not.

func MaybeCompositeType

func MaybeCompositeType(cdcType string, foundTypes []types.CompositeType) (bool, string, string)

MaybeCompositeType checks param is User's custom type

func MaybeMapType

func MaybeMapType(cdcType string, foundTypes []types.CompositeType) (bool, string, string)

MaybeMapType checks param is Cadence map or not.

func MaybeOptionalType

func MaybeOptionalType(cdcType string, foundTypes []types.CompositeType) (bool, string, string)

MaybeOptionalType checks param is Cadence optional type or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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