types

package
v0.0.0-...-a2101d5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: MIT Imports: 0 Imported by: 12

Documentation

Overview

Package types implements VType, the interface all vodka types must implement.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rangeable

type Rangeable interface {
	Next() Rangeable
	Prev() Rangeable
	VType
}

type VType

type VType interface {

	// String returns the value as a string
	String() string

	// Value returns the value
	Value() interface{}

	// Type returns the name of the type as a string
	Type() string

	// Compare compares the value with another, -1, 0, 1 being less, equal and
	// greater. -2 can be used to show not equal, but not less or greater.
	Compare(VType) int

	// Copy returns a deep copy of the type
	Copy() VType
}

Directories

Path Synopsis
Package vblock implements the block type.
Package vblock implements the block type.
Package vboolean implements the boolean type.
Package vboolean implements the boolean type.
Package vdict implements the dictionary type.
Package vdict implements the dictionary type.
Package vinteger implements the integer type.
Package vinteger implements the integer type.
Package vlist implements the list type.
Package vlist implements the list type.
Package vnil implements the nil type.
Package vnil implements the nil type.
Package vrange implements the range type.
Package vrange implements the range type.
Package vstring implements the string type.
Package vstring implements the string type.

Jump to

Keyboard shortcuts

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