datatype

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package datatype provides the DataType type and related methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataType

type DataType int

DataType represents the type of a value.

const (
	// DataTypeNull represents a null type.
	DataTypeNull DataType = iota
	// DataTypeNumber represents a number type.
	DataTypeNumber
	// DataTypeString represents a string type.
	DataTypeString
	// DataTypeBool represents a boolean type.
	DataTypeBool
	// DataTypeFunction represents a function type.
	DataTypeFunction
	// DataTypeTuple represents a tuple type.
	DataTypeTuple
	// DataTypeArray represents an array type.
	DataTypeArray
	// DataTypeError represents an error type.
	DataTypeError
	// DataTypeAny represents any type.
	DataTypeAny
)

func (DataType) AsString

func (dt DataType) AsString() string

AsString provides the string representation of a DataType for error messages.

Jump to

Keyboard shortcuts

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