Contenido del Curso
Introduction to GoLang
Introduction to GoLang
Challenge: Constants
Task
Declare and initialize a constant called myConst
with a value of 17
.
index.go
package main
import "fmt"
func main() {
const myConst = 17
fmt.Println(myConst) // Should output 17
}
¿Todo estuvo claro?
Sección 1. Capítulo 11
Contenido del Curso
Introduction to GoLang
Introduction to GoLang
Challenge: Constants
Task
Declare and initialize a constant called myConst
with a value of 17
.
index.go
package main
import "fmt"
func main() {
const myConst = 17
fmt.Println(myConst) // Should output 17
}
¿Todo estuvo claro?
Sección 1. Capítulo 11