Created
December 11, 2018 00:35
-
-
Save parzibyte/c6a557b92acb8f5e3bcb18f5003689cb 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
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