Discover Packages
github.com/azhai/goent
query
update
package
Version:
v0.8.1
Opens a new window with list of versions in this module.
Published: Jan 15, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Set is used inside a update to set a value on the column for all the matched records
Example ¶ // set animal name as cat on record of id 2
err = goent.Update(db.Animal).Sets(update.Set(&db.Animal.Name, "Cat")).
Where(where.Equals(&db.Animal.Id, 2))
Source Files
¶
Click to show internal directories.
Click to hide internal directories.