Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 8, 2020 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/77222e1938dc57ad73d581aeef089fc2 to your computer and use it in GitHub Desktop.
Save parzibyte/77222e1938dc57ad73d581aeef089fc2 to your computer and use it in GitHub Desktop.
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