Discover Packages
github.com/go-goe/goe
query
update
package
Version:
v0.7.1
Opens a new window with list of versions in this module.
Published: Dec 18, 2025
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 = goe.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.