value

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package value provides types and functions for the representation of generic values with flexible types created at runtime

Index

Constants

This section is empty.

Variables

View Source
var Nothing *nothing = &nothing{}

Functions

func Base64

func Base64(i uint64) string

func Checksum

func Checksum(s string) uint64

func Hash

func Hash(s string) string

Types

type Identifier

type Identifier = uint64

type Number

type Number int64

func (Number) GoString

func (v Number) GoString() string

func (Number) IsEmpty

func (v Number) IsEmpty() bool

func (Number) IsTerminal

func (v Number) IsTerminal() bool

func (Number) String

func (v Number) String() string

func (Number) Type

func (v Number) Type() TypeCode

func (Number) TypeName added in v0.1.14

func (v Number) TypeName() string

type Text

type Text string

func (Text) GoString

func (v Text) GoString() string

func (Text) IsEmpty

func (v Text) IsEmpty() bool

func (Text) IsTerminal

func (v Text) IsTerminal() bool

func (Text) String

func (v Text) String() string

func (Text) Type

func (v Text) Type() TypeCode

func (Text) TypeName added in v0.1.14

func (v Text) TypeName() string

type TypeCode

type TypeCode byte
const (
	TC_nothing TypeCode = iota
	TC_text
	TC_number
	TC_step
)

type Value

type Value interface {
	IsEmpty() bool
	IsTerminal() bool
	Type() TypeCode
	TypeName() string
	String() string
	GoString() string
}

Jump to

Keyboard shortcuts

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