Cursos /
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
}
Tudo estava claro?
Seção 1. Capítulo 11
Conteúdo do 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
}
Tudo estava claro?
Seção 1. Capítulo 11