---
title: "cuelang.org/go v0.18.0 Breaking Changes on Go modules"
description: "What each cuelang.org/go release removed, renamed or changed: 57 breaking changes in 3 versions on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/cuelang.org/go
last_updated: 2026-12-04
---

# cuelang.org/go breaking changes

cuelang.org/go v0.18.0 (November 24, 2026) is its newest release with breaking changes, 48 of them. The first: Removed cuelang.org/go/cue.Kind.CanString. Every breaking API change we have recorded in cuelang.org/go on Go modules: 57 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v0.18.0`, released November 24, 2026. [Source repository](https://github.com/cue-lang/cue)

Packages on Go modules run on Go. [Go end of life dates](https://since.dev/calendar/go.md).

- From [v0.18.0-alpha.1](#v-v0-18-0-alpha-1) to [v0.18.0](#v-v0-18-0): 53 breaking changes in 2 versions.

## cuelang.org/go v0.18.0 breaking changes

cuelang.org/go v0.18.0, released November 24, 2026: 48 breaking changes.

- **Removed** `cuelang.org/go/cue.Kind.CanString`  

cuelang.org/go/cue.Kind.CanString was removed in cuelang.org/go v0.18.0 [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Removed** `cuelang.org/go/cue/ast.File.LanguageVersion`  

cuelang.org/go/cue/ast.File.LanguageVersion was removed in cuelang.org/go v0.18.0 [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/cue/errors.Config.Printer`  

Was Printer format.Printer; now Printer interface {ReplaceArg(x any) (r any, wasReplaced bool)}. [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/crypto/ed25519.Valid`  

Was func Valid(\[\]byte, \[\]byte, \[\]byte) (bool, error); now func Valid(\[\]byte, \[\]byte, \[\]byte) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/encoding/json.Valid`  

Was func Valid(\[\]byte) bool; now func Valid(\[\]byte) pkg.Validator. [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/encoding/json.Validate`  

Was func Validate(\[\]byte, pkg.Schema) (bool, error); now func Validate(\[\]byte, pkg.Schema) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/encoding/yaml.Validate`  

Was func Validate(\[\]byte, pkg.Schema) (bool, error); now func Validate(\[\]byte, pkg.Schema) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/encoding/yaml.ValidatePartial`  

Was func ValidatePartial(\[\]byte, pkg.Schema) (bool, error); now func ValidatePartial(\[\]byte, pkg.Schema) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.Avg`  

Was func Avg(\[\]\*internal.Decimal) (\*internal.Decimal, error); now func Avg(\[\]\*adt.Num) (\*adt.Num, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.IsSorted`  

Was func IsSorted(\[\]cue.Value, cue.Value) bool; now func IsSorted(\[\]cue.Value, cue.Value) (bool, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.MatchN`  

Was func MatchN(\[\]cue.Value, pkg.Schema, pkg.Schema) (bool, error); now func MatchN(\[\]cue.Value, pkg.Schema, pkg.Schema) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.Max`  

Was func Max(\[\]\*internal.Decimal) (\*internal.Decimal, error); now func Max(\[\]\*adt.Num) (\*adt.Num, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.MaxItems`  

Was func MaxItems(pkg.List, int) (bool, error); now func MaxItems(pkg.List, int) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.Min`  

Was func Min(\[\]\*internal.Decimal) (\*internal.Decimal, error); now func Min(\[\]\*adt.Num) (\*adt.Num, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.MinItems`  

Was func MinItems(pkg.List, int) (bool, error); now func MinItems(pkg.List, int) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.Product`  

Was func Product(\[\]\*internal.Decimal) (\*internal.Decimal, error); now func Product(\[\]\*adt.Num) (\*adt.Num, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.Range`  

Was func Range(\*internal.Decimal, \*internal.Decimal, \*internal.Decimal) (\[\]\*internal.Decimal, error); now func Range(\*adt.Num, \*adt.Num, \*adt.Num) (\[\]\*adt.Num, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.Sum`  

Was func Sum(\[\]\*internal.Decimal) (\*internal.Decimal, error); now func Sum(\[\]\*adt.Num) (\*adt.Num, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/list.UniqueItems`  

Was func UniqueItems(\[\]cue.Value) (bool, error); now func UniqueItems(\[\]cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/math.Abs`  

Was func Abs(\*internal.Decimal) (\*internal.Decimal, error); now func Abs(\*adt.Num) \*adt.Num. [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/math.Copysign`  

Was func Copysign(\*internal.Decimal, \*internal.Decimal) \*internal.Decimal; now func Copysign(\*adt.Num, \*adt.Num) \*adt.Num. [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/math.Dim`  

Was func Dim(\*internal.Decimal, \*internal.Decimal) (\*internal.Decimal, error); now func Dim(\*adt.Num, \*adt.Num) (\*adt.Num, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/math.MultipleOf`  

Was func MultipleOf(\*internal.Decimal, \*internal.Decimal) (bool, error); now func MultipleOf(\*internal.Decimal, \*internal.Decimal) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.AbsURL`  

Was func AbsURL(string) (bool, error); now func AbsURL(string) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.FQDN`  

Was func FQDN(string) bool; now func FQDN(string) pkg.Validator. [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.GlobalUnicastIP`  

Was func GlobalUnicastIP(cue.Value) (bool, error); now func GlobalUnicastIP(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.InCIDR`  

Was func InCIDR(cue.Value, cue.Value) (bool, error); now func InCIDR(cue.Value, cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.InterfaceLocalMulticastIP`  

Was func InterfaceLocalMulticastIP(cue.Value) (bool, error); now func InterfaceLocalMulticastIP(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.IP`  

Was func IP(cue.Value) (bool, error); now func IP(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.IPCIDR`  

Was func IPCIDR(cue.Value) (bool, error); now func IPCIDR(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.IPv4`  

Was func IPv4(cue.Value) (bool, error); now func IPv4(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.IPv6`  

Was func IPv6(cue.Value) (bool, error); now func IPv6(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.LinkLocalMulticastIP`  

Was func LinkLocalMulticastIP(cue.Value) (bool, error); now func LinkLocalMulticastIP(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.LinkLocalUnicastIP`  

Was func LinkLocalUnicastIP(cue.Value) (bool, error); now func LinkLocalUnicastIP(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.LoopbackIP`  

Was func LoopbackIP(cue.Value) (bool, error); now func LoopbackIP(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.MulticastIP`  

Was func MulticastIP(cue.Value) (bool, error); now func MulticastIP(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.UnspecifiedIP`  

Was func UnspecifiedIP(cue.Value) (bool, error); now func UnspecifiedIP(cue.Value) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/net.URL`  

Was func URL(string) (bool, error); now func URL(string) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/regexp.Valid`  

Was func Valid(string) (bool, error); now func Valid(string) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/strings.MaxRunes`  

Was func MaxRunes(string, int) bool; now func MaxRunes(string, int) pkg.Validator. [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/strings.MinRunes`  

Was func MinRunes(string, int) bool; now func MinRunes(string, int) pkg.Validator. [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/struct.MaxFields`  

Was func MaxFields(pkg.Struct, int) (bool, error); now func MaxFields(pkg.Struct, int) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/struct.MinFields`  

Was func MinFields(pkg.Struct, int) (bool, error); now func MinFields(pkg.Struct, int) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/time.Duration`  

Was func Duration(string) (bool, error); now func Duration(string) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/time.Format`  

Was func Format(string, string) (bool, error); now func Format(string, string) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/time.Time`  

Was func Time(string) (bool, error); now func Time(string) (pkg.Validator, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/time.ToUnixNano`  

Was func ToUnixNano(string) (int64, error); now func ToUnixNano(string) (\*big.Int, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)
- **Signature changed** `cuelang.org/go/pkg/uuid.ToInt`  

Was func ToInt(string) \*big.Int; now func ToInt(string) (\*big.Int, error). [pkg.go.dev](https://pkg.go.dev/cuelang.org/go@v0.18.0)

## cuelang.org/go v0.18.0-alpha.2 breaking changes

cuelang.org/go v0.18.0-alpha.2, released November 24, 2026: 5 breaking changes.

- **Behavior changed**  

The explicitopen experiment is now stable: from language version v0.18.0 an embedded closed value closes the enclosing struct. Use the postfix ... operator to keep a struct open, or run cue fix --exp=explicitopen before raising the... [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed**  

From language version v0.18.0 the prefix alias form x: X={...} is rejected; use the postfix form x\~(X) or let bindings on self. Run cue fix --exp=aliasv2 to rewrite existing code. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed** `==`  

Values such as 1.0 and 1 inside structs and lists now compare equal with == and !=, and cue.Value.Equals and list.Contains follow the same rule. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed** `cue cmd`  

Data files passed to cue cmd are unified with the package, so tool files can see that data. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed** `tls.caCert`  

tls.caCert now accepts CERTIFICATE PEM blocks and reports an error instead of trusting nothing when no certificates are found. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)

## cuelang.org/go v0.18.0-alpha.1 breaking changes

cuelang.org/go v0.18.0-alpha.1, released November 24, 2026: 4 breaking changes.

- **Removed** `[string]?`  

The parser now rejects \`\[string\]?: int\` and \`\[string\]!: int\`; remove the markers since they had no effect. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Behavior changed** `cue fmt`  

cue fmt now uses the rewritten formatter, so existing files may be reformatted; set CUE_EXPERIMENT=formatv2=0 to keep the old one. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Behavior changed** `cue.format`  

The cue/format Go API is backed by the rewritten formatter, so output layout may change. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Configuration changed** `yaml+indentSeq`  

The YAML output tag option indentSeq was renamed to indentSequences. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)

## Related packages

- [cue](https://since.dev/packages/homebrew/cue.md):  on Homebrew

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
