Зміст курсу
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
}
Все було зрозуміло?
Секція 1. Розділ 11
Зміст курсу
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
}
Все було зрозуміло?
Секція 1. Розділ 11