package pkg

import "cuelang.org/go/pkg"

Package pkg defines 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:

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 register.go

Directories

PathSynopsis
pkg/crypto
pkg/crypto/ed25519
pkg/crypto/hmacPackage hmac implements the Keyed-Hash Message Authentication Code (HMAC) as defined in U.S. Federal Information Processing Standards Publication 198.
pkg/crypto/md5
pkg/crypto/sha1
pkg/crypto/sha256
pkg/crypto/sha512
pkg/encoding
pkg/encoding/base64Package base64 implements base64 encoding as specified by RFC 4648.
pkg/encoding/csv
pkg/encoding/hex
pkg/encoding/json
pkg/encoding/toml
pkg/encoding/yaml
pkg/html
pkg/internal
pkg/listPackage list contains functions for manipulating and examining lists.
pkg/math
pkg/math/bits
pkg/netPackage net provides net-related type definitions.
pkg/pathPackage path implements utility routines for manipulating filename paths as defined by targetted operating systems, and also paths that always use forward slashes regardless of the operating system, such as URLs.
pkg/regexpPackage regexp implements regular expression search.
pkg/strconv
pkg/stringsPackage strings implements simple functions to manipulate UTF-8 encoded strings.package strings.
pkg/structPackage struct defines utilities for struct types.
pkg/text
pkg/text/tabwriter
pkg/text/template
pkg/timePackage time defines time-related types.
pkg/toolPackage tool defines stateful operation types for cue commands.
pkg/tool/cliPackage cli provides tasks dealing with a console.
pkg/tool/execPackage exec defines tasks for running commands.
pkg/tool/filePackage file provides file operations for cue tasks.
pkg/tool/httpPackage http provides tasks related to the HTTP protocol.
pkg/tool/osPackage os defines tasks for retrieving os-related information.
pkg/uuidPackage uuid defines functionality for creating UUIDs as defined in RFC 4122.
Version
v0.12.0 (latest)
Published
Jan 30, 2025
Platform
linux/amd64
Imports
32 packages
Last checked
8 hours ago

Tools for package owners.