forked from ardanlabs/gotraining
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template1.go
28 lines (20 loc) · 874 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
28
// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
// https://play.golang.org/p/1xUWjHMB3I
// 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.
}