Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 11, 2018 00:35
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/c6a557b92acb8f5e3bcb18f5003689cb to your computer and use it in GitHub Desktop.
Save parzibyte/c6a557b92acb8f5e3bcb18f5003689cb to your computer and use it in GitHub Desktop.
contactoNuevo := Contacto{
Id: 1, // El id del contacto que vamos a actualizar
Nombre: "Este es el nuevo nombre",
Direccion: "Nueva dirección",
CorreoElectronico: "parzibyte@gmail.com",
}
err := actualizar(contactoNuevo)
if err != nil {
fmt.Printf("Error actualizando: %v", err)
} else {
fmt.Println("Actualizado correctamente")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment