vstring

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: 1 Imported by: 2

Documentation

Overview

Package vstring implements the string type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VString

type VString struct {
	// contains filtered or unexported fields
}

A string value, eg. `"hello world"`.

func New

func New(s string) *VString

New creates a new VString with the value given.

func (*VString) Compare

func (v *VString) Compare(other types.VType) int

Compare returns 0 if the other string is equal, -1 if it less than or 1 if it greater than.

func (*VString) Copy

func (v *VString) Copy() types.VType

func (*VString) String

func (v *VString) String() string

String returns the value formatted as a string.

func (*VString) Type

func (v *VString) Type() string

Type returns the name of the type, "string".

func (*VString) Value

func (v *VString) Value() interface{}

Value returns the value.

Jump to

Keyboard shortcuts

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