forked from ardanlabs/gotraining
/
template1.go
27 lines (19 loc) · 834 Bytes
/
template1.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
// Declare three variables that are initialized to their zero value and three
// declared with a literal value. Declare variables of type string, int and
// bool. Display the values of those variables.
//
// Declare a new variable of type float32 and initialize the variable by
// converting the literal value of Pi (3.14).
package main
// main is the entry point for the application.
func main() {
// Declare variables that are set to their zero value.
// Display the value of those variables.
// Declare variables and initialize.
// Using the short variable declaration operator.
// Display the value of those variables.
// Perform a type conversion.
// Display the value of that variable.
}