#4520·ent

[Feature request] Go 1.27: add support for stdlib `uuid`

Author: ilovelinuxCreated Sep 15, 2026Updated Sep 15, 2026
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior

Stdlib uuid.UUID is supported by database/sql:

However uuid.UUID is not a Valuer:

Because it's directly supported by databases/sql/driver:

However, ent's UUID requires a driver.Valuer:

https://github.com/ent/ent/blob/ca15d75bec2b916ec8ca9ff0a13d3440e8483693/schema/field/field.go#L154-L169

Expected Behavior

I'd like to see Go 1.27 uuid.UUID being supported.

Steps to Reproduce

go
// Go 1.27
package schema

import (
	"uuid"

	"entgo.io/ent"
	"entgo.io/ent/schema/field"
)

type MyTable struct {
	ent.Schema
}

func (MyTable) Fields() []ent.Field {
	return []ent.Field{
		field.UUID("user_id", uuid.UUID{}).Immutable(), // <- Not supported
	}
}

Your Environment

Tech Version
Go 1.27.1
Ent 0.14.6
Database ---
Driver ---