utils

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBigInt

func GetBigInt(value *big.Int) *big.Int

GetBigInt returns the value if not nil, otherwise returns big.NewInt(0)

func ParseMetadata

func ParseMetadata(metadataJSON json.RawMessage, typex schema.Type) (metadata.Metadata, error)

ParseMetadata parses the metadata and returns the schema metadata

func ParseTypes

func ParseTypes(types []string, tags []tag.Tag) ([]schema.Type, error)

ParseTypes parses the types and returns the schema types

Types

This section is empty.

Jump to

Keyboard shortcuts

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