package
6.0.0+incompatible
Repository: https://github.com/srcup/u-root.git
Documentation: pkg.go.dev

# Functions

Bool converts a value to bool.
Collect collects all elements of an iterable value into a slice.
Concat concatenates two values.
ConvertListIndex parses a list index, check whether it is valid, and returns the converted structure.
Dissoc takes a container and a key, and returns a modified version of the container, with the given key dissociated with any value.
Equal returns whether two values are equal.
Feed calls the function with given values, breaking earlier if the function returns false.
FromGo converts a Go value to an Elvish value.
Hash returns the 32-bit hash of a value.
Index indexes a value with the given key.
Iterate iterates the supplied value, and calls the supplied function in each of its elements.
IterateKeys iterates the keys of the supplied value, calling the supplied function for each key.
Kind returns the "kind" of the value, a concept similar to type but not yet very well defined.
Len returns the length of the value, or -1 if the value does not have a well-defined length.
MakeList creates a new List from values.
MakeMap converts a native Go map to Map.
MakeMapFromKV creates a map from arguments that are alternately keys and values.
MakeList creates a new List from strings.
NewFile creates a new File value.
NewPipe creates a new Pipe value.
NoSuchKey returns an error indicating that a key is not found in a map-like value.
Repr returns the representation for a value, a string that is preferably (but not necessarily) an Elvish expression that evaluates to the argument.
ScanToGo converts an Elvish value to a Go value.
ToString converts a Value to string.

# Constants

NoPretty can be passed to Repr to suppress pretty-printing.

# Variables

EmptyList is an empty list.
EmptyMap is an empty map.
ErrConcatNotImplemented is a special error value used to signal that concatenation is not implemented.

# Structs

File wraps a pointer to os.File.
ListIndex represents a (converted) list index.
ListReprBuilder helps to build Repr of list-like Values.
MapReprBuilder helps building the Repr of a Map.
Pipe wraps a pair of pointers to os.File that are the two ends of the same pipe.

# Interfaces

Booler wraps the Bool method.
Concatter wraps the Concat method.
Dissocer wraps the Dissoc method.
Equaler wraps the Equal method.
ErrIndexer wraps the Index method.
Hasher wraps the Hash method.
Indexer wraps the Index method.
Iterator wraps the Iterate method.
KeysIterator wraps the IterateKeys method.
Kinder wraps the Kind method.
Lener wraps the Len method.
RConcatter wraps the RConcat method.
Reprer wraps the Repr method.
Scanner is implemented by types that can scan an Elvish value into itself.
Stringer wraps the String method.