Skip to content

Commit ca3a690

Browse files
author
Matias Speroni
committed
go: ejercicio-00
1 parent 5ec3492 commit ca3a690

File tree

1 file changed

+27
-0
lines changed
  • Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/go

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package main
2+
3+
// This is the golang programing page https://go.dev/
4+
5+
/*
6+
This is a multiline comment
7+
of this beautiful program :-D
8+
*/
9+
10+
import "fmt"
11+
12+
var myVariable = "Golang"
13+
14+
const myConstant = "My constant is here!"
15+
16+
var myString string = "String"
17+
var myBool bool = true
18+
var myInt int = 10
19+
var myFloat float32 = 3.14
20+
var myComplex complex64 = 2 + 3i
21+
var myAliasByte byte = 65
22+
var myAliasRune rune = '☺'
23+
24+
func main() {
25+
fmt.Println("Hola " + myVariable)
26+
fmt.Println(myConstant, myString, myBool, myInt, myFloat, myComplex, myAliasByte, myAliasRune)
27+
}

0 commit comments

Comments
 (0)