Created
April 8, 2020 02:19
-
-
Save parzibyte/77222e1938dc57ad73d581aeef089fc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bd, err = gorm.Open("tu_motor", "credenciales") | |
if err != nil{ | |
// manejar error | |
} | |
defer bd.Close() | |
var personas []Persona | |
busqueda := "Luis" | |
bd.Where("nombre = ?", busqueda).Find(&personas) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment