package pkg
import "cuelang.org/go/pkg"
Package pkg define CUE standard packages.
Many of the standard packages are modeled after and generated from the Go core packages. The types, values, and functions are defined as their Go equivalence and mapped to CUE types.
Beware that some packages are defined in lesser-precision types than are typically used in CUE and thus may lead to loss of precision.
All packages except those defined in the tool subdirectory are hermetic, that is depending only on a known set of inputs, and therefore can guarantee reproducible results. That is:
- no reading of files contents
- no querying of the file system of any kind
- no communication on the network
- no information about the type of environment
- only reproduceable random generators
Hermetic configurations allow for fast and advanced analysis that otherwise would not be possible or practical. The cue "cmd" command can be used to mix in non-hermetic influences into configurations by using packages defined in the tool subdirectory.
Index ¶
Source Files ¶
doc.go
Directories ¶
Path | Synopsis |
---|---|
pkg/crypto | |
pkg/crypto/md5 | |
pkg/crypto/sha1 | |
pkg/crypto/sha256 | |
pkg/crypto/sha512 | |
pkg/encoding | |
pkg/encoding/csv | |
pkg/encoding/hex | |
pkg/encoding/json | |
pkg/encoding/yaml | |
pkg/html | |
pkg/math | |
pkg/math/bits | |
pkg/path | |
pkg/regexp | |
pkg/strconv | |
pkg/strings | |
pkg/text | |
pkg/text/tabwriter | |
pkg/text/template | |
pkg/time | |
pkg/tool | Package tool defines statefull operation types for cue commands. |
pkg/tool/cli | Package cli provides tasks dealing with a console. |
pkg/tool/exec | Package exec defines tasks for running commands. |
pkg/tool/file | Package file provides file operations for cue tasks. |
pkg/tool/http | Package http provides tasks related to the HTTP protocol. |
- Version
- v0.0.4
- Published
- Jul 9, 2019
- Platform
- linux/amd64
- Last checked
- 13 seconds ago –
Tools for package owners.