Created
July 13, 2017 14:17
-
-
Save hectorgool/5dc65466ffe10cacb5245901d31e00aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /* | |
| Héctor G.O. | |
| twitter@hector_gool | |
| */ | |
| package main | |
| //sintaxis corta para importar paquetes | |
| import "fmt" | |
| //sintaxis corta para declarar variables | |
| var ( | |
| a int | |
| b int | |
| ) | |
| // la función main, es el punto de entrada a mi programa, es la función que se ejecuta primero | |
| func main() { | |
| var ( | |
| nombre string = "Santo" | |
| correo = "santo@correo.com" | |
| ) | |
| x:= 4 | |
| y:= 6 | |
| fmt.Printf("El nombre es: %v\n", nombre) | |
| fmt.Printf("El correo es: %v\n", correo) | |
| fmt.Printf("El valor de a es: %v\n", a) | |
| fmt.Printf("El valor de b es: %v\n", b) | |
| fmt.Printf("El valor de x es: %v\n", x) | |
| fmt.Printf("El valor de y es: %v\n", y) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment