We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f8cfaf commit 16459a8Copy full SHA for 16459a8
model.go
@@ -295,6 +295,10 @@ func (u *ULID) UnmarshalText(text []byte) (err error) {
295
return
296
}
297
298
+func (id ULID) MarshalText() ([]byte, error) {
299
+ return []byte(id.String()), nil
300
+}
301
+
302
// Value implements the Valuer interface.
303
func (id ULID) Value() (driver.Value, error) {
304
return uuid.UUID(id).Value()
0 commit comments